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

Unified Diff: content/renderer/render_process_impl.cc

Issue 119493005: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Put low end device detection under the flag for all platforms except android. Created 6 years, 11 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/renderer/render_process_impl.cc
diff --git a/content/renderer/render_process_impl.cc b/content/renderer/render_process_impl.cc
index 50a4b6e46ea3c25a31a466454062baa06b2921a0..7fcf90601f3fcbe1f1da548bea1a0b909c5b74dd 100644
--- a/content/renderer/render_process_impl.cc
+++ b/content/renderer/render_process_impl.cc
@@ -18,6 +18,7 @@
#include "base/message_loop/message_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/sys_info.h"
+#include "base/sys_utils.h"
#include "content/child/child_thread.h"
#include "content/child/npapi/plugin_instance.h"
#include "content/child/npapi/plugin_lib.h"
@@ -36,10 +37,6 @@
#include "base/mac/mac_util.h"
#endif
-#if defined(OS_ANDROID)
-#include "base/android/sys_utils.h"
-#endif
-
namespace content {
RenderProcessImpl::RenderProcessImpl()
@@ -71,10 +68,8 @@ RenderProcessImpl::RenderProcessImpl()
// Out of process dev tools rely upon auto break behavior.
webkit_glue::SetJavaScriptFlags("--debugger-auto-break");
-#if defined(OS_ANDROID)
- if (base::android::SysUtils::IsLowEndDevice())
+ if (base::SysUtils::IsLowEndDevice())
webkit_glue::SetJavaScriptFlags("--optimize-for-size");
-#endif
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kJavaScriptFlags)) {

Powered by Google App Engine
This is Rietveld 408576698