Index: content/browser/screen_orientation/screen_orientation_delegate_android.cc |
diff --git a/content/browser/screen_orientation/screen_orientation_delegate_android.cc b/content/browser/screen_orientation/screen_orientation_delegate_android.cc |
index bb2f5bc61f9d0d3f0dae48774010b36e7b1963d6..3a8874e46fbfbbec7aa6d3b69766a1c28cbae4d9 100644 |
--- a/content/browser/screen_orientation/screen_orientation_delegate_android.cc |
+++ b/content/browser/screen_orientation/screen_orientation_delegate_android.cc |
@@ -41,10 +41,11 @@ bool ScreenOrientationDelegateAndroid::FullScreenRequired( |
return fullscreen_required; |
} |
-void ScreenOrientationDelegateAndroid::Lock( |
+bool ScreenOrientationDelegateAndroid::Lock(WebContents* web_contents, |
blink::WebScreenOrientationLockType lock_orientation) { |
Java_ScreenOrientationProvider_lockOrientation( |
base::android::AttachCurrentThread(), lock_orientation); |
+ return true; |
} |
bool ScreenOrientationDelegateAndroid::ScreenOrientationProviderSupported() { |
@@ -52,7 +53,7 @@ bool ScreenOrientationDelegateAndroid::ScreenOrientationProviderSupported() { |
return true; |
} |
-void ScreenOrientationDelegateAndroid::Unlock() { |
+void ScreenOrientationDelegateAndroid::Unlock(WebContents* web_contents) { |
Java_ScreenOrientationProvider_unlockOrientation( |
base::android::AttachCurrentThread()); |
} |