Skip to content

Commit

Permalink
Backed out changeset a906d38b7c07 (bug 1273079) for bustage. r=backout
Browse files Browse the repository at this point in the history
  • Loading branch information
Archaeopteryx committed May 19, 2016
1 parent 23aa17b commit 9513941
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions dom/base/ScreenOrientation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,7 @@ ScreenOrientation::UpdateActiveOrientationLock(ScreenOrientationInternal aOrient
if (aOrientation == eScreenOrientation_None) {
hal::UnlockScreenOrientation();
} else {
bool rv = hal::LockScreenOrientation(aOrientation);
NS_WARN_IF_FALSE(rv, "Lock screen failed!");
hal::LockScreenOrientation(aOrientation);
}
}

Expand Down
8 changes: 4 additions & 4 deletions hal/Hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ void NotifyScreenConfigurationChange(const hal::ScreenConfiguration& aScreenConf
* Lock the screen orientation to the specific orientation.
* @return Whether the lock has been accepted.
*/
MOZ_MUST_USE bool LockScreenOrientation(const dom::ScreenOrientationInternal& aOrientation);
bool LockScreenOrientation(const dom::ScreenOrientationInternal& aOrientation);

/**
* Unlock the screen orientation.
Expand Down Expand Up @@ -438,7 +438,7 @@ void NotifySwitchStateFromInputDevice(hal::SwitchDevice aDevice,
*
* Currently, there can only be 0 or 1 alarm observers.
*/
MOZ_MUST_USE bool RegisterTheOneAlarmObserver(hal::AlarmObserver* aObserver);
bool RegisterTheOneAlarmObserver(hal::AlarmObserver* aObserver);

/**
* Unregister the alarm observer. Doing so will implicitly cancel any
Expand All @@ -465,7 +465,7 @@ void NotifyAlarmFired();
* This API is currently only allowed to be used from non-sandboxed
* contexts.
*/
MOZ_MUST_USE bool SetAlarm(int32_t aSeconds, int32_t aNanoseconds);
bool SetAlarm(int32_t aSeconds, int32_t aNanoseconds);

/**
* Set the priority of the given process.
Expand Down Expand Up @@ -585,7 +585,7 @@ hal::FMRadioSettings GetFMBandSettings(hal::FMRadioCountry aCountry);
/**
* Enable RDS data reception
*/
MOZ_MUST_USE bool EnableRDS(uint32_t aMask);
bool EnableRDS(uint32_t aMask);

/**
* Disable RDS data reception
Expand Down
2 changes: 1 addition & 1 deletion hal/HalInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void DisableSwitchNotifications(hal::SwitchDevice aDevice);
/**
* Enable alarm notifications from the backend.
*/
MOZ_MUST_USE bool EnableAlarm();
bool EnableAlarm();

/**
* Disable alarm notifications from the backend.
Expand Down

0 comments on commit 9513941

Please sign in to comment.