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

Issue 153403003: Move supports-high-dpi flag into registry. (Closed)

Created:
6 years, 10 months ago by girard
Modified:
6 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, ananta, cpu_(ooo_6.6-7.5), zturner
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move supports-high-dpi flag into registry. Calls to SetProcessDpiAwareness need to happen immediately when the app starts. Specifically, before user profile settings have been initialized. This patch moves the --supports-high-dpi into the registry. BUG=339152, 149881, 160457 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256811

Patch Set 1 #

Patch Set 2 : Clean #

Total comments: 3

Patch Set 3 : Remove flag from profile. #

Patch Set 4 : Code cleanup - remove useless comment. #

Total comments: 12

Patch Set 5 : Reformat, remove strings #

Total comments: 2

Patch Set 6 : Move constants to top of namespace. #

Patch Set 7 : Adding testing support for high-dpi setting. #

Patch Set 8 : Cleanup. Renaming function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -25 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/win/dpi.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/win/dpi.cc View 1 2 3 4 5 6 7 4 chunks +33 lines, -10 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
girard
6 years, 10 months ago (2014-02-11 06:06:26 UTC) #1
sky
What is it about high DPI support that makes it need to be initialized early ...
6 years, 10 months ago (2014-02-11 14:57:00 UTC) #2
sky
I don't like the complexity this adds, along with the nest of ifdefs for only ...
6 years, 10 months ago (2014-02-11 17:09:01 UTC) #3
girard
In Win8.1, SetProcessDpiAwareness needs to be called before any calls that depend on it (which ...
6 years, 10 months ago (2014-02-11 18:51:48 UTC) #4
girard
On 2014/02/11 17:09:01, sky wrote: > I don't like the complexity this adds, along with ...
6 years, 10 months ago (2014-02-11 20:28:24 UTC) #5
girard
https://codereview.chromium.org/153403003/diff/220001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/153403003/diff/220001/chrome/browser/about_flags.cc#newcode2238 chrome/browser/about_flags.cc:2238: DWORD registry_value = ReadRegistryValue( Self-review: This logic depends on ...
6 years, 10 months ago (2014-02-11 20:28:57 UTC) #6
sky
What's so hard about passing in a switch or setting the registry entry? I agree ...
6 years, 10 months ago (2014-02-11 21:57:37 UTC) #7
girard
On 2014/02/11 21:57:37, sky wrote: > What's so hard about passing in a switch or ...
6 years, 10 months ago (2014-02-14 18:52:31 UTC) #8
girard
The current patch removes the flag from about://flags, as requested. PTAL.
6 years, 10 months ago (2014-02-19 19:40:15 UTC) #9
sky
just style nits https://codereview.chromium.org/153403003/diff/340001/ui/gfx/win/dpi.cc File ui/gfx/win/dpi.cc (right): https://codereview.chromium.org/153403003/diff/340001/ui/gfx/win/dpi.cc#newcode104 ui/gfx/win/dpi.cc:104: DWORD ReadRegistryValue(HKEY root, const wchar_t* base_key, ...
6 years, 10 months ago (2014-02-19 21:20:32 UTC) #10
girard
Cleanup up formatting/nits. Also removed unused strings. https://codereview.chromium.org/153403003/diff/340001/ui/gfx/win/dpi.cc File ui/gfx/win/dpi.cc (right): https://codereview.chromium.org/153403003/diff/340001/ui/gfx/win/dpi.cc#newcode104 ui/gfx/win/dpi.cc:104: DWORD ReadRegistryValue(HKEY ...
6 years, 10 months ago (2014-02-20 02:22:17 UTC) #11
sky
LGTM https://codereview.chromium.org/153403003/diff/400001/ui/gfx/win/dpi.cc File ui/gfx/win/dpi.cc (right): https://codereview.chromium.org/153403003/diff/400001/ui/gfx/win/dpi.cc#newcode101 ui/gfx/win/dpi.cc:101: const wchar_t kRegistryProfilePath[] = L"SOFTWARE\\Google\\Chrome\\Profile"; nit: move constants ...
6 years, 10 months ago (2014-02-20 15:48:43 UTC) #12
girard
Thanks! https://codereview.chromium.org/153403003/diff/400001/ui/gfx/win/dpi.cc File ui/gfx/win/dpi.cc (right): https://codereview.chromium.org/153403003/diff/400001/ui/gfx/win/dpi.cc#newcode101 ui/gfx/win/dpi.cc:101: const wchar_t kRegistryProfilePath[] = L"SOFTWARE\\Google\\Chrome\\Profile"; On 2014/02/20 15:48:43, ...
6 years, 10 months ago (2014-02-20 20:20:15 UTC) #13
girard
The CQ bit was checked by girard@chromium.org
6 years, 10 months ago (2014-02-20 20:20:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/girard@chromium.org/153403003/480001
6 years, 10 months ago (2014-02-20 20:24:01 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-20 22:24:11 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests, content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=267280
6 years, 10 months ago (2014-02-20 22:24:11 UTC) #17
girard
The CQ bit was checked by girard@chromium.org
6 years, 10 months ago (2014-02-20 22:55:33 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/girard@chromium.org/153403003/480001
6 years, 10 months ago (2014-02-20 22:55:47 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 02:49:41 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=267499
6 years, 10 months ago (2014-02-21 02:49:41 UTC) #21
girard
Scott, can you take another look at this? Since the LGTM, I've added a fix ...
6 years, 9 months ago (2014-03-12 21:21:23 UTC) #22
sky
LGTM
6 years, 9 months ago (2014-03-12 22:49:57 UTC) #23
girard
The CQ bit was checked by girard@chromium.org
6 years, 9 months ago (2014-03-12 23:23:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/girard@chromium.org/153403003/830001
6 years, 9 months ago (2014-03-12 23:24:42 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 01:48:40 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-13 01:48:40 UTC) #27
girard
The CQ bit was checked by girard@chromium.org
6 years, 9 months ago (2014-03-13 02:56:53 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/girard@chromium.org/153403003/830001
6 years, 9 months ago (2014-03-13 02:57:17 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 04:36:53 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg
6 years, 9 months ago (2014-03-13 04:36:54 UTC) #31
girard
The CQ bit was checked by girard@chromium.org
6 years, 9 months ago (2014-03-13 12:03:45 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/girard@chromium.org/153403003/830001
6 years, 9 months ago (2014-03-13 12:03:59 UTC) #33
girard
On 2014/03/13 04:36:54, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 9 months ago (2014-03-13 12:04:44 UTC) #34
commit-bot: I haz the power
6 years, 9 months ago (2014-03-13 13:17:47 UTC) #35
Message was sent while issue was closed.
Change committed as 256811

Powered by Google App Engine
This is Rietveld 408576698