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

Issue 119493005: Expose a low-end device mode override flags for non-android OSs as well (Closed)

Created:
7 years ago by ostap
Modified:
6 years, 6 months ago
CC:
chromium-reviews, davidben+watch_chromium.org, cbentzel+watch_chromium.org, tburkard+watch_chromium.org, jam, joi+watch-content_chromium.org, gavinp+prer_chromium.org, dominich+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, erikwright+watch_chromium.org, lgombos
Base URL:
https://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Expose a low-end device mode override flags for non-android OSs as well BUG=324824

Patch Set 1 #

Total comments: 15

Patch Set 2 : Rebased, updated by review comments, removed JNI call from AmountOfPhysicalMemoryKB() . #

Patch Set 3 : Put low end device detection under the flag for all platforms except android. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -182 lines) Patch
M base/android/base_jni_registrar.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M base/android/java/src/org/chromium/base/SysUtils.java View 1 1 chunk +0 lines, -1 line 0 comments Download
D base/android/sys_utils.h View 1 1 chunk +0 lines, -33 lines 0 comments Download
D base/android/sys_utils.cc View 1 chunk +0 lines, -41 lines 0 comments Download
A + base/android/sys_utils_android.h View 1 1 chunk +5 lines, -13 lines 0 comments Download
A base/android/sys_utils_android.cc View 1 1 chunk +30 lines, -0 lines 0 comments Download
M base/android/sys_utils_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/base.gypi View 1 2 chunks +4 lines, -2 lines 0 comments Download
M base/base_switches.h View 2 chunks +2 lines, -5 lines 0 comments Download
M base/base_switches.cc View 3 chunks +6 lines, -8 lines 0 comments Download
M base/memory/discardable_memory_android.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
A + base/sys_utils.h View 1 1 chunk +6 lines, -12 lines 0 comments Download
A base/sys_utils.cc View 1 2 1 chunk +55 lines, -0 lines 2 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/android/chrome_startup_flags.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_manager_factory.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/renderer_host/web_cache_manager.cc View 3 chunks +2 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download
M content/renderer/render_process_impl.cc View 1 3 chunks +2 lines, -7 lines 0 comments Download
M content/renderer/render_widget.cc View 1 4 chunks +12 lines, -12 lines 1 comment Download
M content/renderer/renderer_main.cc View 1 3 chunks +7 lines, -9 lines 0 comments Download
M gpu/command_buffer/service/async_pixel_transfer_manager_android.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gl/gl_context_android.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/child/webkitplatformsupport_impl.cc View 3 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ostap
Script recommended me those reviewers: tony: webkit/child/webkitplatformsupport_impl.cc yfriedman: base/android/base_jni_registrar.cc base/android/sys_utils.cc base/android/sys_utils.h base/android/sys_utils_android.cc base/android/sys_utils_android.h base/android/sys_utils_unittest.cc chrome/browser/android/chrome_startup_flags.cc ...
7 years ago (2013-12-20 22:53:20 UTC) #1
willchan no longer on Chromium
https://chromiumcodereview.appspot.com/119493005/diff/1/base/android/sys_utils_android.cc File base/android/sys_utils_android.cc (right): https://chromiumcodereview.appspot.com/119493005/diff/1/base/android/sys_utils_android.cc#newcode26 base/android/sys_utils_android.cc:26: static bool is_low_end = android::SysUtilsAndroid::IsLowEndDeviceFromJni(); This is racy too ...
6 years, 12 months ago (2013-12-26 19:02:38 UTC) #2
lgombos
https://chromiumcodereview.appspot.com/119493005/diff/1/base/sys_utils.h File base/sys_utils.h (right): https://chromiumcodereview.appspot.com/119493005/diff/1/base/sys_utils.h#newcode15 base/sys_utils.h:15: // Returns true iff this is a low-end device. ...
6 years, 12 months ago (2013-12-27 05:31:44 UTC) #3
ostap
On 2013/12/26 19:02:38, willchan wrote: > https://chromiumcodereview.appspot.com/119493005/diff/1/base/sys_utils.h#newcode15 > base/sys_utils.h:15: // Returns true iff this is ...
6 years, 11 months ago (2013-12-30 16:36:49 UTC) #4
piman
I'm not convinced the code/settings for low-end android devices has generally been tested on low-end ...
6 years, 11 months ago (2014-01-08 04:41:50 UTC) #5
ostap
https://codereview.chromium.org/119493005/diff/1/base/android/sys_utils_android.cc File base/android/sys_utils_android.cc (right): https://codereview.chromium.org/119493005/diff/1/base/android/sys_utils_android.cc#newcode26 base/android/sys_utils_android.cc:26: static bool is_low_end = android::SysUtilsAndroid::IsLowEndDeviceFromJni(); On 2013/12/26 19:02:39, willchan ...
6 years, 11 months ago (2014-01-20 08:12:23 UTC) #6
piman
https://codereview.chromium.org/119493005/diff/310001/base/sys_utils.cc File base/sys_utils.cc (right): https://codereview.chromium.org/119493005/diff/310001/base/sys_utils.cc#newcode15 base/sys_utils.cc:15: static const int LOW_MEMORY_DEVICE_THRESHOLD_MB = 512; nit: kLowMemoryDeviceThresholdMB. https://codereview.chromium.org/119493005/diff/310001/base/sys_utils.cc#newcode25 ...
6 years, 11 months ago (2014-01-21 21:23:49 UTC) #7
gavinp
chrome/browser/prerender LGTM (mostly a rubber stamp)
6 years, 11 months ago (2014-01-22 00:35:52 UTC) #8
kbalazs
6 years, 6 months ago (2014-06-11 17:01:38 UTC) #9
Message was sent while issue was closed.
On 2014/01/22 00:35:52, gavinp wrote:
> chrome/browser/prerender LGTM (mostly a rubber stamp)

FYI this is continuing in https://codereview.chromium.org/258663002/

Powered by Google App Engine
This is Rietveld 408576698