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

Unified Diff: content/browser/screen_orientation/screen_orientation_dispatcher_host.cc

Issue 513073002: Add SetProvider function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/browser/screen_orientation/screen_orientation_dispatcher_host.cc
diff --git a/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc b/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc
index 5d77d6c88958a53857c1f404cc415da2cebc97b1..684873c9677a46fd9e2d07d662d6b786debc1f73 100644
--- a/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc
+++ b/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc
@@ -135,4 +135,9 @@ void ScreenOrientationDispatcherHost::OnUnlockRequest(
provider_->UnlockOrientation();
}
+void ScreenOrientationDispatcherHost::SetProvider(
+ ScreenOrientationProvider* provider) {
+ provider_.reset(provider);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698