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

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

Issue 546453004: Centralize ScreenOrientationProvider logic, add platform delegates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen_orientation_public_impl_split
Patch Set: Remove Factory Created 6 years, 2 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_impl.cc
diff --git a/content/browser/screen_orientation/screen_orientation_dispatcher_host_impl.cc b/content/browser/screen_orientation/screen_orientation_dispatcher_host_impl.cc
index a47784f86143c951948a9bb66edcd0443a936ac9..1e5240d9b97d161f44fad8d3cdb1bb438f07967e 100644
--- a/content/browser/screen_orientation/screen_orientation_dispatcher_host_impl.cc
+++ b/content/browser/screen_orientation/screen_orientation_dispatcher_host_impl.cc
@@ -27,7 +27,7 @@ ScreenOrientationDispatcherHostImpl::ScreenOrientationDispatcherHostImpl(
WebContents* web_contents)
: WebContentsObserver(web_contents),
current_lock_(NULL) {
- provider_.reset(ScreenOrientationProvider::Create(this, web_contents));
+ provider_.reset(new ScreenOrientationProvider(this, web_contents));
}
ScreenOrientationDispatcherHostImpl::~ScreenOrientationDispatcherHostImpl() {

Powered by Google App Engine
This is Rietveld 408576698