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

Unified Diff: content/public/browser/screen_orientation_provider.cc

Issue 723633003: Reland ScreenOrientationDelegate on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeOS build error Created 6 years, 1 month 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
« no previous file with comments | « content/public/browser/screen_orientation_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « content/public/browser/screen_orientation_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698