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

Issue 10837142: Remove --load-2x-resources flag. (Closed)

Created:
8 years, 4 months ago by flackr
Modified:
8 years, 4 months ago
Reviewers:
pkotwicz, sky
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, Rick Byers
Visibility:
Public.

Description

Remove --load-2x-resources flag. BUG=140040 TEST=Running chrome with --force-device-scale-factor=2 still loads 2x resources. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150648

Patch Set 1 #

Total comments: 10

Patch Set 2 : Remove DCHECKs and loads high DPI resources unconditionally. #

Patch Set 3 : Merge with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -36 lines) Patch
M chrome/browser/chromeos/login/helper.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/zygote_host/zygote_host_impl_linux.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/root_window_host_linux.cc View 1 2 3 chunks +0 lines, -7 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/resource/resource_bundle_aurax11.cc View 1 2 2 chunks +14 lines, -17 lines 0 comments Download
M ui/base/ui_base_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/ui_base_switches.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
flackr
This looks like a noop since we check device scale factor or load 2x resources ...
8 years, 4 months ago (2012-08-07 15:02:09 UTC) #1
pkotwicz
http://codereview.chromium.org/10837142/diff/1/chrome/browser/chromeos/login/helper.cc File chrome/browser/chromeos/login/helper.cc (left): http://codereview.chromium.org/10837142/diff/1/chrome/browser/chromeos/login/helper.cc#oldcode114 chrome/browser/chromeos/login/helper.cc:114: if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kLoad2xResources)) Aren't you losing functionality here? http://codereview.chromium.org/10837142/diff/1/ui/aura/root_window_host_linux.cc File ...
8 years, 4 months ago (2012-08-07 16:04:58 UTC) #2
flackr
http://codereview.chromium.org/10837142/diff/1/chrome/browser/chromeos/login/helper.cc File chrome/browser/chromeos/login/helper.cc (left): http://codereview.chromium.org/10837142/diff/1/chrome/browser/chromeos/login/helper.cc#oldcode114 chrome/browser/chromeos/login/helper.cc:114: if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kLoad2xResources)) On 2012/08/07 16:04:58, pkotwicz wrote: > Aren't ...
8 years, 4 months ago (2012-08-07 18:05:41 UTC) #3
flackr
http://codereview.chromium.org/10837142/diff/1/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/10837142/diff/1/ui/aura/root_window_host_linux.cc#newcode306 ui/aura/root_window_host_linux.cc:306: return gfx::Display::GetForcedDeviceScaleFactor() > 1.0f; On 2012/08/07 16:04:58, pkotwicz wrote: ...
8 years, 4 months ago (2012-08-07 18:47:50 UTC) #4
pkotwicz
lgtm
8 years, 4 months ago (2012-08-07 20:52:19 UTC) #5
flackr
Scott, can you take a look? Thanks!
8 years, 4 months ago (2012-08-08 14:03:45 UTC) #6
sky
LGTM
8 years, 4 months ago (2012-08-08 14:45:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/10837142/2002
8 years, 4 months ago (2012-08-08 15:16:09 UTC) #8
commit-bot: I haz the power
Failed to apply patch for ui/base/resource/resource_bundle_aurax11.cc: While running patch -p1 --forward --force; patching file ui/base/resource/resource_bundle_aurax11.cc ...
8 years, 4 months ago (2012-08-08 16:48:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/10837142/14001
8 years, 4 months ago (2012-08-08 17:20:37 UTC) #10
commit-bot: I haz the power
Try job failure for 10837142-14001 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-08 18:50:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/10837142/14001
8 years, 4 months ago (2012-08-08 20:28:35 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-09 00:25:45 UTC) #13
Change committed as 150648

Powered by Google App Engine
This is Rietveld 408576698