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

Issue 308003020: Pass the device scale factor in the command line to renderer processes. (Closed)

Created:
6 years, 6 months ago by ananta
Modified:
6 years, 6 months ago
Reviewers:
jschuh, jam, sky
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Pass the device scale factor in the command line to renderer processes. This is to ensure that we don't use GDI to query the device scale factor in renderer processes. This is in preparation for setting the MITIGATION_WIN32K_DISABLE policy on renderer processes, which will lock them out from making user32/gdi32 calls which enter win32k.sys. BUG=365160 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274766

Patch Set 1 #

Total comments: 7

Patch Set 2 : Code review comments #

Patch Set 3 : Reverted changes to dpi.cc #

Total comments: 6

Patch Set 4 : Code review comments #

Patch Set 5 : Fixes for tests failures on Windows builders #

Total comments: 1

Patch Set 6 : Fixed presubmit warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -27 lines) Patch
M content/app/content_main_runner.cc View 1 2 3 4 5 3 chunks +17 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 2 chunks +12 lines, -8 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 2 chunks +20 lines, -17 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M ui/gfx/win/dpi.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/win/dpi.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
ananta
https://codereview.chromium.org/308003020/diff/1/ui/gfx/win/dpi.cc File ui/gfx/win/dpi.cc (left): https://codereview.chromium.org/308003020/diff/1/ui/gfx/win/dpi.cc#oldcode175 ui/gfx/win/dpi.cc:175: DCHECK_NE(0.0f, g_device_scale_factor); Removed this DCHECK as we need to ...
6 years, 6 months ago (2014-06-03 01:04:01 UTC) #1
sky
https://codereview.chromium.org/308003020/diff/1/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/308003020/diff/1/content/app/content_main_runner.cc#newcode77 content/app/content_main_runner.cc:77: #include "base/strings/string_number_conversions.h" nit: newline between 76/77. https://codereview.chromium.org/308003020/diff/1/content/app/content_main_runner.cc#newcode669 content/app/content_main_runner.cc:669: } ...
6 years, 6 months ago (2014-06-03 15:59:06 UTC) #2
ananta
Added a call to InitDeviceScaleFactor in content_main_runner.cc. Added a check in resource_bundle to see if ...
6 years, 6 months ago (2014-06-03 19:18:12 UTC) #3
ananta
https://codereview.chromium.org/308003020/diff/1/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/308003020/diff/1/content/app/content_main_runner.cc#newcode669 content/app/content_main_runner.cc:669: } On 2014/06/03 15:59:06, sky wrote: > Can you ...
6 years, 6 months ago (2014-06-03 19:18:36 UTC) #4
jschuh
lgtm
6 years, 6 months ago (2014-06-03 19:36:06 UTC) #5
sky
https://codereview.chromium.org/308003020/diff/30001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/308003020/diff/30001/content/app/content_main_runner.cc#newcode668 content/app/content_main_runner.cc:668: if (base::StringToDouble(scale_factor_string, &scale_factor)) Don't you need to handle the ...
6 years, 6 months ago (2014-06-03 20:11:44 UTC) #6
ananta
https://codereview.chromium.org/308003020/diff/30001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/308003020/diff/30001/content/app/content_main_runner.cc#newcode668 content/app/content_main_runner.cc:668: if (base::StringToDouble(scale_factor_string, &scale_factor)) On 2014/06/03 20:11:43, sky wrote: > ...
6 years, 6 months ago (2014-06-03 20:43:24 UTC) #7
sky
LGTM
6 years, 6 months ago (2014-06-03 22:01:21 UTC) #8
sky
LGTM
6 years, 6 months ago (2014-06-03 23:29:05 UTC) #9
ananta
The CQ bit was checked by ananta@chromium.org
6 years, 6 months ago (2014-06-03 23:43:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ananta@chromium.org/308003020/70001
6 years, 6 months ago (2014-06-03 23:44:58 UTC) #11
ananta
+jam for content owners stamp
6 years, 6 months ago (2014-06-03 23:53:00 UTC) #12
jam
https://codereview.chromium.org/308003020/diff/70001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/308003020/diff/70001/content/app/content_main_runner.cc#newcode664 content/app/content_main_runner.cc:664: bool init_device_scale_factor = true; this command line flag is ...
6 years, 6 months ago (2014-06-04 00:29:15 UTC) #13
ananta
On 2014/06/04 00:29:15, jam wrote: > https://codereview.chromium.org/308003020/diff/70001/content/app/content_main_runner.cc > File content/app/content_main_runner.cc (right): > > https://codereview.chromium.org/308003020/diff/70001/content/app/content_main_runner.cc#newcode664 > ...
6 years, 6 months ago (2014-06-04 00:34:32 UTC) #14
jam
On 2014/06/04 00:34:32, ananta wrote: > On 2014/06/04 00:29:15, jam wrote: > > > https://codereview.chromium.org/308003020/diff/70001/content/app/content_main_runner.cc ...
6 years, 6 months ago (2014-06-04 00:41:12 UTC) #15
ananta
On 2014/06/04 00:41:12, jam wrote: > On 2014/06/04 00:34:32, ananta wrote: > > On 2014/06/04 ...
6 years, 6 months ago (2014-06-04 00:53:47 UTC) #16
jam
On 2014/06/04 00:53:47, ananta wrote: > On 2014/06/04 00:41:12, jam wrote: > > On 2014/06/04 ...
6 years, 6 months ago (2014-06-04 01:28:16 UTC) #17
ananta
On 2014/06/04 01:28:16, jam wrote: > On 2014/06/04 00:53:47, ananta wrote: > > On 2014/06/04 ...
6 years, 6 months ago (2014-06-04 01:41:56 UTC) #18
jam
lgtm
6 years, 6 months ago (2014-06-04 02:04:29 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-04 03:58:55 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-04 04:02:41 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/71490)
6 years, 6 months ago (2014-06-04 04:02:42 UTC) #22
ananta
The CQ bit was checked by ananta@chromium.org
6 years, 6 months ago (2014-06-04 04:14:20 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ananta@chromium.org/308003020/90001
6 years, 6 months ago (2014-06-04 04:15:45 UTC) #24
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 11:10:54 UTC) #25
Message was sent while issue was closed.
Change committed as 274766

Powered by Google App Engine
This is Rietveld 408576698