Bug 1337765 - Unbreak build on non-SPS platforms after bug 1335536. r?baku draft
authorJan Beich <jbeich@FreeBSD.org>
Wed, 08 Feb 2017 13:29:46 +0000
changeset 480539 6e3acedf2759e43f5a549655fef79de45c2b010c
parent 480538 35902d02315744816e9cf5ce7e035742b5fa6733
child 544983 c2263a634385c51c9b937b7401da096b42402531
push id44574
push userbmo:jbeich@FreeBSD.org
push dateWed, 08 Feb 2017 13:34:21 +0000
reviewersbaku
bugs1337765, 1335536
milestone54.0a1
Bug 1337765 - Unbreak build on non-SPS platforms after bug 1335536. r?baku MozReview-Commit-ID: 3HGwZpYRUdu
dom/file/FileCreatorHelper.cpp
dom/file/FileCreatorHelper.h
--- a/dom/file/FileCreatorHelper.cpp
+++ b/dom/file/FileCreatorHelper.cpp
@@ -5,17 +5,16 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "FileCreatorHelper.h"
 
 #include "mozilla/dom/BindingDeclarations.h"
 #include "mozilla/dom/ContentChild.h"
 #include "mozilla/dom/FileBinding.h"
 #include "mozilla/dom/File.h"
-#include "mozilla/dom/Promise.h"
 #include "nsContentUtils.h"
 #include "nsPIDOMWindow.h"
 #include "nsIFile.h"
 
 // Undefine the macro of CreateFile to avoid FileCreatorHelper#CreateFile being
 // replaced by FileCreatorHelper#CreateFileW.
 #ifdef CreateFile
 #undef CreateFile
--- a/dom/file/FileCreatorHelper.h
+++ b/dom/file/FileCreatorHelper.h
@@ -5,33 +5,33 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef mozilla_dom_FileCreatorHelper_h
 #define mozilla_dom_FileCreatorHelper_h
 
 #include "mozilla/Attributes.h"
 #include "mozilla/ErrorResult.h"
 #include "mozilla/RefPtr.h"
+#include "mozilla/dom/Promise.h"
 #include "nsISupportsImpl.h"
 
 // Undefine the macro of CreateFile to avoid FileCreatorHelper#CreateFile being
 // replaced by FileCreatorHelper#CreateFileW.
 #ifdef CreateFile
 #undef CreateFile
 #endif
 
 class nsIFile;
 class nsPIDOMWindowInner;
 
 namespace mozilla {
 namespace dom {
 
 struct ChromeFilePropertyBag;
 class GlobalObject;
-class Promise;
 class File;
 
 class FileCreatorHelper final
 {
 public:
   NS_INLINE_DECL_REFCOUNTING(FileCreatorHelper);
 
   static already_AddRefed<Promise>