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

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

Created:
6 years, 8 months ago by c.shu
Modified:
6 years, 6 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, davidben+watch_chromium.org, dominich+watch_chromium.org, erikwright+watch_chromium.org, gavinp+memory_chromium.org, gavinp+prer_chromium.org, jam, miu+watch_chromium.org, nona+watch_chromium.org, penghuang+watch_chromium.org, piman+watch_chromium.org, ostap, James Su, tburkard+watch_chromium.org, yukishiino+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Expose a low-end device mode override flags for non-android OSs as well BUG=324824 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280024

Patch Set 1 #

Total comments: 3

Patch Set 2 : Forward command-line flags to renderer and gpu processes #

Total comments: 12

Patch Set 3 : Addressed review comments. #

Patch Set 4 : Fix Android and GN builds. #

Patch Set 5 : Fix Android build. #

Patch Set 6 : Fix Android unittest build. #

Total comments: 9

Patch Set 7 : Address review comments. #

Patch Set 8 : Fix gn build. #

Patch Set 9 : Fix builds. #

Total comments: 1

Patch Set 10 : address reviewer comments and fix builds. #

Patch Set 11 : rebaseline again #

Total comments: 6

Patch Set 12 : address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -108 lines) Patch
M base/android/java/src/org/chromium/base/BaseSwitches.java View 1 2 3 4 5 6 1 chunk +4 lines, -5 lines 0 comments Download
M base/android/java/src/org/chromium/base/SysUtils.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -10 lines 0 comments Download
D base/android/sys_utils.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -9 lines 0 comments Download
D base/android/sys_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -18 lines 0 comments Download
M base/android/sys_utils_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M base/base_switches.h View 1 2 3 4 5 6 2 chunks +1 line, -5 lines 0 comments Download
M base/base_switches.cc View 1 2 3 4 5 6 2 chunks +5 lines, -8 lines 0 comments Download
M base/memory/discardable_memory_android.cc View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M base/sys_info.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M base/sys_info.cc View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
M base/sys_info_android.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_startup_flags.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_manager_factory.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/web_cache_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -8 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -2 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -6 lines 0 comments Download
M content/renderer/render_process_impl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -7 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +3 lines, -5 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/async_pixel_transfer_manager_android.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gl/gl_context_android.cc View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
c.shu
This patch is based on the work from Viatcheslav Ostapenko. https://codereview.chromium.org/119493005/ Thanks in advance for ...
6 years, 8 months ago (2014-04-24 15:48:26 UTC) #1
piman
https://codereview.chromium.org/258663002/diff/1/base/sys_utils.cc File base/sys_utils.cc (right): https://codereview.chromium.org/258663002/diff/1/base/sys_utils.cc#newcode17 base/sys_utils.cc:17: bool detectLowEndDevice() { nit: style https://codereview.chromium.org/258663002/diff/1/base/sys_utils.cc#newcode42 base/sys_utils.cc:42: return g_lazy_low_end_device.Get().value(); ...
6 years, 8 months ago (2014-04-24 19:50:07 UTC) #2
c.shu
On 2014/04/24 19:50:07, piman wrote: > https://codereview.chromium.org/258663002/diff/1/base/sys_utils.cc > File base/sys_utils.cc (right): > > https://codereview.chromium.org/258663002/diff/1/base/sys_utils.cc#newcode17 > ...
6 years, 8 months ago (2014-04-24 20:08:59 UTC) #3
ostap
On 2014/04/24 19:50:07, piman wrote: > https://codereview.chromium.org/258663002/diff/1/base/sys_utils.cc > File base/sys_utils.cc (right): > > https://codereview.chromium.org/258663002/diff/1/base/sys_utils.cc#newcode17 > ...
6 years, 7 months ago (2014-04-29 06:13:31 UTC) #4
ostap
On 2014/04/29 06:13:31, ostap wrote: > On 2014/04/24 19:50:07, piman wrote: > > https://codereview.chromium.org/258663002/diff/1/base/sys_utils.cc > ...
6 years, 7 months ago (2014-04-29 06:20:28 UTC) #5
piman
On Mon, Apr 28, 2014 at 11:13 PM, <sl.ostapenko@samsung.com> wrote: > On 2014/04/24 19:50:07, piman ...
6 years, 7 months ago (2014-04-29 22:17:09 UTC) #6
jochen (gone - plz use gerrit)
On 2014/04/29 22:17:09, piman wrote: > On Mon, Apr 28, 2014 at 11:13 PM, <mailto:sl.ostapenko@samsung.com> ...
6 years, 7 months ago (2014-04-30 17:06:09 UTC) #7
c.shu
Addressed the command-line flag forwarding issue. The getting-sysinfo-before-sandbox should already be working based on jochen's ...
6 years, 7 months ago (2014-04-30 21:19:01 UTC) #8
c.shu
On 2014/04/30 21:19:01, c.shu wrote: > Addressed the command-line flag forwarding issue. The > getting-sysinfo-before-sandbox ...
6 years, 6 months ago (2014-06-05 15:35:54 UTC) #9
jochen (gone - plz use gerrit)
the beef of this CL is in base/ - I recommend to explicitly ask a ...
6 years, 6 months ago (2014-06-06 07:09:37 UTC) #10
brettw
https://codereview.chromium.org/258663002/diff/20001/base/sys_utils.cc File base/sys_utils.cc (right): https://codereview.chromium.org/258663002/diff/20001/base/sys_utils.cc#newcode14 base/sys_utils.cc:14: namespace { blank lines around this, also check other ...
6 years, 6 months ago (2014-06-09 22:49:57 UTC) #11
brettw
https://codereview.chromium.org/258663002/diff/20001/base/sys_utils.cc File base/sys_utils.cc (right): https://codereview.chromium.org/258663002/diff/20001/base/sys_utils.cc#newcode14 base/sys_utils.cc:14: namespace { blank lines around this, also check other ...
6 years, 6 months ago (2014-06-09 22:49:58 UTC) #12
brettw
Also, it's not clear to me if piman's comments are still outstanding.
6 years, 6 months ago (2014-06-09 22:53:31 UTC) #13
piman
On Mon, Jun 9, 2014 at 3:49 PM, <brettw@chromium.org> wrote: > > https://codereview.chromium.org/258663002/diff/20001/base/sys_utils.cc > File ...
6 years, 6 months ago (2014-06-10 01:23:05 UTC) #14
ostap
https://codereview.chromium.org/258663002/diff/20001/base/sys_utils.cc File base/sys_utils.cc (right): https://codereview.chromium.org/258663002/diff/20001/base/sys_utils.cc#newcode42 base/sys_utils.cc:42: return g_lazy_low_end_device.Get().value(); On 2014/06/09 22:49:57, brettw wrote: > I ...
6 years, 6 months ago (2014-06-10 17:05:57 UTC) #15
brettw
On 2014/06/10 17:05:57, ostap wrote: > There are several places in base/sys-*.cc where LazyInstance is ...
6 years, 6 months ago (2014-06-10 17:12:58 UTC) #16
c.shu
https://codereview.chromium.org/258663002/diff/1/base/sys_utils.cc File base/sys_utils.cc (right): https://codereview.chromium.org/258663002/diff/1/base/sys_utils.cc#newcode17 base/sys_utils.cc:17: bool detectLowEndDevice() { On 2014/04/24 19:50:08, piman wrote: > ...
6 years, 6 months ago (2014-06-10 17:36:26 UTC) #17
c.shu
On 2014/06/09 22:53:31, brettw wrote: > Also, it's not clear to me if piman's comments ...
6 years, 6 months ago (2014-06-10 17:38:15 UTC) #18
piman
lgtm for content/ and gpu/
6 years, 6 months ago (2014-06-10 23:03:51 UTC) #19
willchan no longer on Chromium
I've removed myself as a reviewer as I'm traveling (mostly on vacation). On Tue, Jun ...
6 years, 6 months ago (2014-06-11 17:54:57 UTC) #20
brettw
https://codereview.chromium.org/258663002/diff/100001/base/android/sys_utils_android.cc File base/android/sys_utils_android.cc (right): https://codereview.chromium.org/258663002/diff/100001/base/android/sys_utils_android.cc#newcode24 base/android/sys_utils_android.cc:24: } // namespace android Blank line above here. https://codereview.chromium.org/258663002/diff/100001/base/android/sys_utils_android.cc#newcode34 ...
6 years, 6 months ago (2014-06-11 21:02:41 UTC) #21
c.shu
https://codereview.chromium.org/258663002/diff/100001/base/android/sys_utils_android.cc File base/android/sys_utils_android.cc (right): https://codereview.chromium.org/258663002/diff/100001/base/android/sys_utils_android.cc#newcode24 base/android/sys_utils_android.cc:24: } // namespace android On 2014/06/11 21:02:40, brettw wrote: ...
6 years, 6 months ago (2014-06-12 21:12:49 UTC) #22
c.shu
https://codereview.chromium.org/258663002/diff/100001/base/base_switches.cc File base/base_switches.cc (right): https://codereview.chromium.org/258663002/diff/100001/base/base_switches.cc#newcode71 base/base_switches.cc:71: const char kDetectLowEndDevice[] = "detect-low-end-device"; On 2014/06/11 21:02:40, brettw ...
6 years, 6 months ago (2014-06-12 21:18:11 UTC) #23
brettw
I don't know how they're used on Android. Can't we update those uses?
6 years, 6 months ago (2014-06-12 21:58:11 UTC) #24
c.shu
On 2014/06/12 21:58:11, brettw wrote: > I don't know how they're used on Android. Can't ...
6 years, 6 months ago (2014-06-12 22:02:44 UTC) #25
c.shu
6 years, 6 months ago (2014-06-13 20:49:34 UTC) #26
c.shu
6 years, 6 months ago (2014-06-13 21:52:47 UTC) #27
brettw
LGTM with more comment: https://codereview.chromium.org/258663002/diff/160001/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/258663002/diff/160001/base/sys_info.h#newcode133 base/sys_info.h:133: // Returns true iff this ...
6 years, 6 months ago (2014-06-18 19:37:30 UTC) #28
c.shu
On 2014/06/18 19:37:30, brettw wrote: > LGTM with more comment: > > https://codereview.chromium.org/258663002/diff/160001/base/sys_info.h > File ...
6 years, 6 months ago (2014-06-18 19:42:00 UTC) #29
c.shu
Can any chrome and ui owners approve the trivial changes there? Thanks in advance.
6 years, 6 months ago (2014-06-19 13:57:00 UTC) #30
Yaron
https://codereview.chromium.org/258663002/diff/200001/base/android/java/src/org/chromium/base/SysUtils.java File base/android/java/src/org/chromium/base/SysUtils.java (right): https://codereview.chromium.org/258663002/diff/200001/base/android/java/src/org/chromium/base/SysUtils.java#newcode35 base/android/java/src/org/chromium/base/SysUtils.java:35: * Note: the only reason this is public is ...
6 years, 6 months ago (2014-06-23 18:48:00 UTC) #31
c.shu
Thanks for the review, Yaron. I will post an update soon. https://codereview.chromium.org/258663002/diff/200001/base/android/java/src/org/chromium/base/SysUtils.java File base/android/java/src/org/chromium/base/SysUtils.java (right): ...
6 years, 6 months ago (2014-06-23 18:56:40 UTC) #32
c.shu
There are a few trivial changes in chrome and ui that don't have lgtm but ...
6 years, 6 months ago (2014-06-25 20:49:02 UTC) #33
c.shu
The CQ bit was checked by c.shu@samsung.com
6 years, 6 months ago (2014-06-25 20:49:14 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/c.shu@samsung.com/258663002/220001
6 years, 6 months ago (2014-06-25 20:50:28 UTC) #35
Nico
The CQ bit was unchecked by thakis@chromium.org
6 years, 6 months ago (2014-06-25 20:52:03 UTC) #36
Nico
Please see "[chromium-dev] Reminder: reviewer unresponsiveness is not an acceptable reason to TBR [Was: When ...
6 years, 6 months ago (2014-06-25 20:52:15 UTC) #37
c.shu
On 2014/06/25 20:52:15, Nico (away) wrote: > Please see "[chromium-dev] Reminder: reviewer unresponsiveness is not ...
6 years, 6 months ago (2014-06-25 20:59:20 UTC) #38
jochen (gone - plz use gerrit)
lgtm
6 years, 6 months ago (2014-06-26 14:54:46 UTC) #39
c.shu
The CQ bit was checked by c.shu@samsung.com
6 years, 6 months ago (2014-06-26 16:51:59 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/c.shu@samsung.com/258663002/220001
6 years, 6 months ago (2014-06-26 16:53:18 UTC) #41
commit-bot: I haz the power
6 years, 6 months ago (2014-06-26 16:55:31 UTC) #42
Message was sent while issue was closed.
Change committed as 280024

Powered by Google App Engine
This is Rietveld 408576698