Index: content/public/browser/screen_orientation_provider.cc |
diff --git a/content/public/browser/screen_orientation_provider.cc b/content/public/browser/screen_orientation_provider.cc |
index 35a07eeffde67319a00fca785cc50b72d335372c..3a9244f201d13dca44d7452de35eec7edc772e8a 100644 |
--- a/content/public/browser/screen_orientation_provider.cc |
+++ b/content/public/browser/screen_orientation_provider.cc |
@@ -73,7 +73,7 @@ void ScreenOrientationProvider::LockOrientation(int request_id, |
} |
lock_applied_ = true; |
- delegate_->Lock(lock_orientation); |
+ delegate_->Lock(web_contents(), lock_orientation); |
// If two calls happen close to each other some platforms will ignore the |
// first. A successful lock will be once orientation matches the latest |
@@ -94,7 +94,7 @@ void ScreenOrientationProvider::UnlockOrientation() { |
if (!lock_applied_ || !delegate_) |
return; |
- delegate_->Unlock(); |
+ delegate_->Unlock(web_contents()); |
lock_applied_ = false; |
pending_lock_.reset(); |