Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1596)

Unified Diff: content/renderer/screen_orientation/screen_orientation_dispatcher.cc

Issue 347553002: Use WebLockOrientationError instead of WebLockOrientationCallbackErrorType. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup_web_screen_orientation_listener
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/screen_orientation/screen_orientation_dispatcher.cc
diff --git a/content/renderer/screen_orientation/screen_orientation_dispatcher.cc b/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
index e67cc73634ec79a3541815223011e5f6d3f4f661..7e5bcfcd382aa85cf0c6add2a6d6517c39dd9dae 100644
--- a/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
+++ b/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
@@ -44,8 +44,7 @@ void ScreenOrientationDispatcher::OnLockSuccess(
}
void ScreenOrientationDispatcher::OnLockError(
- int request_id,
- blink::WebLockOrientationCallback::ErrorType error) {
+ int request_id, blink::WebLockOrientationError error) {
blink::WebLockOrientationCallback* callback =
pending_callbacks_.Lookup(request_id);
if (!callback)
@@ -57,8 +56,7 @@ void ScreenOrientationDispatcher::OnLockError(
void ScreenOrientationDispatcher::CancelPendingLocks() {
for (CallbackMap::Iterator<blink::WebLockOrientationCallback>
iterator(&pending_callbacks_); !iterator.IsAtEnd(); iterator.Advance()) {
- iterator.GetCurrentValue()->onError(
- blink::WebLockOrientationCallback::ErrorTypeCanceled);
+ iterator.GetCurrentValue()->onError(blink::WebLockOrientationErrorCanceled);
pending_callbacks_.Remove(iterator.GetCurrentKey());
}
}

Powered by Google App Engine
This is Rietveld 408576698