Skip to content

Commit

Permalink
Bug 914826 - part 4 - fix source files that were bootlegging XPCOM do…
Browse files Browse the repository at this point in the history
…_* functions via generated ipdl headers; r=ehsan
  • Loading branch information
froydnj committed Sep 10, 2013
1 parent 90b435c commit 0da01f9
Show file tree
Hide file tree
Showing 31 changed files with 36 additions and 7 deletions.
2 changes: 2 additions & 0 deletions dom/audiochannel/AudioChannelService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include "nsThreadUtils.h"
#include "nsHashPropertyBag.h"
#include "nsComponentManagerUtils.h"
#include "nsServiceManagerUtils.h"

#ifdef MOZ_WIDGET_GONK
#include "nsJSUtils.h"
Expand Down
1 change: 1 addition & 0 deletions dom/base/Crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "mozilla/dom/ContentChild.h"
#include "mozilla/dom/CryptoBinding.h"
#include "nsServiceManagerUtils.h"

using mozilla::dom::ContentChild;

Expand Down
1 change: 1 addition & 0 deletions dom/base/nsContentPermissionHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "nsIPrincipal.h"
#include "mozilla/dom/Element.h"
#include "mozilla/unused.h"
#include "nsComponentManagerUtils.h"

using mozilla::unused; // <snicker>
using namespace mozilla::dom;
Expand Down
1 change: 1 addition & 0 deletions dom/base/nsDOMWindowUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
#include "nsIBaseWindow.h"
#include "nsIDocShellTreeOwner.h"
#include "nsIInterfaceRequestorUtils.h"
#include "GeckoProfiler.h"

#ifdef XP_WIN
#undef GetClassName
Expand Down
3 changes: 1 addition & 2 deletions dom/bluetooth/BluetoothA2dpManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,7 @@ BluetoothA2dpManager::NotifyConnectionStatusChanged()
MOZ_ASSERT(NS_IsMainThread());

// Notify Gecko observers
nsCOMPtr<nsIObserverService> obs =
do_GetService("@mozilla.org/observer-service;1");
nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
NS_ENSURE_TRUE_VOID(obs);

if (NS_FAILED(obs->NotifyObservers(this,
Expand Down
4 changes: 2 additions & 2 deletions dom/bluetooth/BluetoothHfpManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "nsISettingsService.h"
#include "nsITelephonyProvider.h"
#include "nsRadioInterfaceLayer.h"
#include "nsServiceManagerUtils.h"

/**
* BRSF bitmask of AG supported features. See 4.34.1 "Bluetooth Defined AT
Expand Down Expand Up @@ -448,8 +449,7 @@ BluetoothHfpManager::NotifyConnectionStatusChanged(const nsAString& aType)
MOZ_ASSERT(NS_IsMainThread());

// Notify Gecko observers
nsCOMPtr<nsIObserverService> obs =
do_GetService("@mozilla.org/observer-service;1");
nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
NS_ENSURE_TRUE_VOID(obs);

if (NS_FAILED(obs->NotifyObservers(this, NS_ConvertUTF16toUTF8(aType).get(),
Expand Down
1 change: 1 addition & 0 deletions dom/bluetooth/BluetoothOppManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "nsIOutputStream.h"
#include "nsIVolumeService.h"
#include "nsNetUtil.h"
#include "nsServiceManagerUtils.h"

#define TARGET_SUBDIR "Download/Bluetooth/"

Expand Down
1 change: 1 addition & 0 deletions dom/bluetooth/BluetoothPropertyContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "DOMRequest.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/bluetooth/BluetoothTypes.h"
#include "nsServiceManagerUtils.h"

USING_BLUETOOTH_NAMESPACE

Expand Down
1 change: 1 addition & 0 deletions dom/bluetooth/BluetoothReplyRunnable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "BluetoothReplyRunnable.h"
#include "DOMRequest.h"
#include "mozilla/dom/bluetooth/BluetoothTypes.h"
#include "nsServiceManagerUtils.h"

USING_BLUETOOTH_NAMESPACE

Expand Down
1 change: 1 addition & 0 deletions dom/bluetooth/BluetoothService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "nsISettingsService.h"
#include "nsISystemMessagesInternal.h"
#include "nsITimer.h"
#include "nsServiceManagerUtils.h"
#include "nsThreadUtils.h"
#include "nsXPCOM.h"

Expand Down
1 change: 1 addition & 0 deletions dom/bluetooth/BluetoothUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "nsISystemMessagesInternal.h"
#include "nsString.h"
#include "nsTArray.h"
#include "nsServiceManagerUtils.h"

BEGIN_BLUETOOTH_NAMESPACE

Expand Down
1 change: 1 addition & 0 deletions dom/ipc/ProcessPriorityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "nsIObserver.h"
#include "nsITimer.h"
#include "nsIPropertyBag2.h"
#include "nsComponentManagerUtils.h"

#ifdef XP_WIN
#include <process.h>
Expand Down
1 change: 1 addition & 0 deletions dom/ipc/TabContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "mozilla/dom/TabChild.h"
#include "nsIAppsService.h"
#include "nsIScriptSecurityManager.h"
#include "nsServiceManagerUtils.h"

#define NO_APP_ID (nsIScriptSecurityManager::NO_APP_ID)

Expand Down
1 change: 1 addition & 0 deletions dom/media/MediaPermissionGonk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "mozilla/dom/TabChild.h"
#include "mozilla/dom/MediaStreamTrackBinding.h"
#include "nsISupportsPrimitives.h"
#include "nsServiceManagerUtils.h"

#define AUDIO_PERMISSION_NAME "audio-capture"

Expand Down
1 change: 1 addition & 0 deletions dom/mobilemessage/src/gonk/SmsService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "SmsService.h"
#include "jsapi.h"
#include "SmsSegmentInfo.h"
#include "nsServiceManagerUtils.h"

namespace mozilla {
namespace dom {
Expand Down
1 change: 1 addition & 0 deletions dom/mobilemessage/src/ipc/SmsParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "nsContentUtils.h"
#include "nsTArrayHelpers.h"
#include "nsCxPusher.h"
#include "nsServiceManagerUtils.h"

namespace mozilla {
namespace dom {
Expand Down
1 change: 1 addition & 0 deletions dom/plugins/ipc/PluginModuleParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "nsPrintfCString.h"
#include "PluginIdentifierParent.h"
#include "prsystem.h"
#include "GeckoProfiler.h"

#ifdef XP_WIN
#include "PluginHangUIParent.h"
Expand Down
1 change: 1 addition & 0 deletions dom/src/notification/DesktopNotification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "nsIAppsService.h"
#include "PCOMContentPermissionRequestChild.h"
#include "nsIScriptSecurityManager.h"
#include "nsServiceManagerUtils.h"

namespace mozilla {
namespace dom {
Expand Down
2 changes: 2 additions & 0 deletions dom/system/gonk/AudioManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include "nsJSUtils.h"
#include "nsCxPusher.h"
#include "nsThreadUtils.h"
#include "nsServiceManagerUtils.h"
#include "nsComponentManagerUtils.h"

using namespace mozilla::dom::gonk;
using namespace android;
Expand Down
1 change: 1 addition & 0 deletions dom/system/gonk/nsVolumeMountLock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#define VOLUME_MANAGER_LOG_TAG "nsVolumeMountLock"
#include "VolumeManagerLog.h"
#include "nsServiceManagerUtils.h"

using namespace mozilla::dom;
using namespace mozilla::services;
Expand Down
1 change: 1 addition & 0 deletions dom/telephony/ipc/TelephonyParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "mozilla/dom/telephony/TelephonyParent.h"
#include "nsServiceManagerUtils.h"

USING_TELEPHONY_NAMESPACE

Expand Down
1 change: 1 addition & 0 deletions hal/android/AndroidHal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "mozilla/dom/network/Constants.h"
#include "mozilla/dom/ScreenOrientation.h"
#include "nsIScreenManager.h"
#include "nsServiceManagerUtils.h"

using namespace mozilla::dom;
using namespace mozilla::hal;
Expand Down
1 change: 1 addition & 0 deletions hal/cocoa/CocoaSensor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "Hal.h"
#include "nsITimer.h"
#include "smslib.h"
#include "nsComponentManagerUtils.h"

#include <mach/mach.h>
#include <cmath>
Expand Down
4 changes: 2 additions & 2 deletions hal/fallback/FallbackAlarm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

#include <algorithm>

#include <nsITimer.h>

#include "mozilla/ClearOnShutdown.h"
#include "mozilla/StaticPtr.h"
#include "nsComponentManagerUtils.h"
#include "nsITimer.h"
#include "nsThreadUtils.h"

namespace mozilla {
Expand Down
1 change: 1 addition & 0 deletions hal/fallback/FallbackScreenConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "Hal.h"
#include "mozilla/dom/ScreenOrientation.h"
#include "nsIScreenManager.h"
#include "nsServiceManagerUtils.h"

namespace mozilla {
namespace hal_impl {
Expand Down
1 change: 1 addition & 0 deletions hal/windows/WindowsBattery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "nsITimer.h"
#include "mozilla/Preferences.h"
#include "mozilla/dom/battery/Constants.h"
#include "nsComponentManagerUtils.h"

#include <windows.h>
#include "nsWindowsHelpers.h"
Expand Down
1 change: 1 addition & 0 deletions layout/generic/nsSubDocumentFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "nsObjectFrame.h"
#include "nsContentUtils.h"
#include "nsIPermissionManager.h"
#include "nsServiceManagerUtils.h"

using namespace mozilla;
using mozilla::layout::RenderFrameParent;
Expand Down
2 changes: 1 addition & 1 deletion toolkit/xre/ProfileReset.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsIToolkitProfileService.h"

#include "nsIFile.h"
#include "nsThreadUtils.h"

static bool gProfileResetCleanupCompleted = false;
Expand Down
1 change: 1 addition & 0 deletions widget/gonk/OrientationObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "OrientationObserver.h"
#include "mozilla/HalSensor.h"
#include "ProcessOrientation.h"
#include "nsServiceManagerUtils.h"

using namespace mozilla;
using namespace dom;
Expand Down
1 change: 1 addition & 0 deletions widget/gonk/OrientationObserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "mozilla/Observer.h"
#include "mozilla/dom/ScreenOrientation.h"
#include "mozilla/Scoped.h"

namespace mozilla {
class ProcessOrientation;
Expand Down
2 changes: 2 additions & 0 deletions xpcom/base/nsMemoryInfoDumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include "nsJSEnvironment.h"
#include "nsPrintfCString.h"
#include "nsISimpleEnumerator.h"
#include "nsServiceManagerUtils.h"
#include "nsIFile.h"
#include <errno.h>

#ifdef XP_WIN
Expand Down

0 comments on commit 0da01f9

Please sign in to comment.