Bug 1402824 - Include nsIThreadInteral.h in SynchronizedEventQueue to fix non-unified. r=billm draft
authorPhilippe Normand <philn@igalia.com>
Mon, 25 Sep 2017 10:56:13 +0100
changeset 670440 15219cba6f5a41c42aa1103d8c958a55ac3b9af0
parent 670439 3f78b6a1d73f4d59d3aac4b2da79c27cae404897
child 670441 4f079246b7dd6c378eba97897f74a3c9623540df
push id81629
push userbmo:cpearce@mozilla.com
push dateTue, 26 Sep 2017 12:03:30 +0000
reviewersbillm
bugs1402824
milestone58.0a1
Bug 1402824 - Include nsIThreadInteral.h in SynchronizedEventQueue to fix non-unified. r=billm nsIThreadObserver (defined in nsIThreadInternal.h) was used without prior declaration. MozReview-Commit-ID: 9cSuERgUPtl
xpcom/threads/SynchronizedEventQueue.cpp
--- a/xpcom/threads/SynchronizedEventQueue.cpp
+++ b/xpcom/threads/SynchronizedEventQueue.cpp
@@ -1,15 +1,16 @@
 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "SynchronizedEventQueue.h"
+#include "nsIThreadInternal.h"
 
 using namespace mozilla;
 
 void
 SynchronizedEventQueue::AddObserver(nsIThreadObserver* aObserver)
 {
   MOZ_ASSERT(aObserver);
   MOZ_ASSERT(!mEventObservers.Contains(aObserver));