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

Unified Diff: content/renderer/renderer_main.cc

Issue 258663002: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments. Created 6 years, 6 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/renderer_main.cc
diff --git a/content/renderer/renderer_main.cc b/content/renderer/renderer_main.cc
index a64816a67106e7c3aa0343f1f87951a738d7ec7b..242af718ce85afe6bd12ed563bdae98945c693e9 100644
--- a/content/renderer/renderer_main.cc
+++ b/content/renderer/renderer_main.cc
@@ -17,6 +17,7 @@
#include "base/path_service.h"
#include "base/pending_task.h"
#include "base/strings/string_util.h"
+#include "base/sys_info.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "base/timer/hi_res_timer_manager.h"
@@ -34,7 +35,6 @@
#include "ui/base/ui_base_switches.h"
#if defined(OS_ANDROID)
-#include "base/android/sys_utils.h"
#include "third_party/skia/include/core/SkGraphics.h"
#endif // OS_ANDROID
@@ -141,7 +141,7 @@ int RendererMain(const MainFunctionParams& parameters) {
#if defined(OS_ANDROID)
const int kMB = 1024 * 1024;
size_t font_cache_limit =
- base::android::SysUtils::IsLowEndDevice() ? kMB : 8 * kMB;
+ base::SysInfo::IsLowEndDevice() ? kMB : 8 * kMB;
SkGraphics::SetFontCacheLimit(font_cache_limit);
#endif
« no previous file with comments | « content/renderer/render_widget.cc ('k') | gpu/command_buffer/service/async_pixel_transfer_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698