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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1758823004: Screen.orientation lock API implementation for Windows8 and later. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 64cec9e6912b070218b96191faaa6b7e7d8e5626..15e4a3d015d6505b03a32651680f6efbbef0a985 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -129,6 +129,8 @@
#include <shellapi.h>
#include "base/memory/memory_pressure_monitor_win.h"
+#include "base/win/windows_version.h"
+#include "content/browser/screen_orientation/screen_orientation_delegate_win.h"
#include "content/browser/system_message_window_win.h"
#include "content/common/sandbox_win.h"
#include "net/base/winsock_init.h"
@@ -594,6 +596,8 @@ void BrowserMainLoop::PostMainMessageLoopStart() {
#if defined(OS_WIN)
system_message_window_.reset(new SystemMessageWindowWin);
+ if (base::win::GetVersion() >= base::win::VERSION_WIN8)
+ screen_orientation_delegate_.reset(new ScreenOrientationDelegateWin());
#endif
// TODO(boliu): kSingleProcess check is a temporary workaround for

Powered by Google App Engine
This is Rietveld 408576698