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

Unified Diff: chrome/renderer/render_thread.cc

Issue 3042009: Add --enable-device-orientation switch and set ENABLE_DEVICE_ORIENTATION=1 (Closed)
Patch Set: Created 10 years, 5 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: chrome/renderer/render_thread.cc
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index f63a90eecda08cc03227fb261239c024d3ad18e4..1ecd13cb29dd68ed07466e05e8c2fbc787eb6798 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -893,6 +893,9 @@ void RenderThread::EnsureWebKitInitialized() {
WebRuntimeFeatures::enableTouch(
command_line.HasSwitch(switches::kEnableTouch));
+
+ WebRuntimeFeatures::enableDeviceOrientation(
+ command_line.HasSwitch(switches::kEnableDeviceOrientation));
}
void RenderThread::IdleHandler() {

Powered by Google App Engine
This is Rietveld 408576698