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

Issue 2724203003: Don't look up font size preferences on Android. (Closed)

Created:
3 years, 9 months ago by aelias_OOO_until_Jul13
Modified:
3 years, 9 months ago
Reviewers:
Bernhard Bauer, sky
CC:
chromium-reviews, skobes, Lei Zhang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't look up font size preferences on Android. These are not configurable on Android so we should rely on the default value on the WebPreferences object. The use of the unnecessary pref appears to have caused the value to be reused from an unrelated pref when the resource ID space changed. Detailed rationale: * The default value for the font size preference is coming from a resource. * That resource isn't defined on Android, only on all desktop platforms. * This nevertheless used to work for some reason, but that changed with the resource ID reshuffle http://crrev.com/427236. Why precisely this used to work and why it's now broken is not yet fully understood. * This CL fixes this by removing the pref completely, given that there are no other sources for the pref anyway, and the WebPreferences struct has its own default, which matches what's in the GRD file on other platforms. Because this is for 56 cherry-pick and the resource ID situation is not yet fully understood, this seems like a safer fix than, for instance, trying to add a new resource to the Android GRD file. BUG=696364 Review-Url: https://codereview.chromium.org/2724203003 Cr-Commit-Position: refs/heads/master@{#454437} Committed: https://chromium.googlesource.com/chromium/src/+/0df335a1ea5a09d4860168bc05bbf0d11e802bf5

Patch Set 1 #

Patch Set 2 : Fix unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_unittest.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 4 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (19 generated)
aelias_OOO_until_Jul13
Hi bauerb@, I thought you might be able to sanity check this since you reviewed ...
3 years, 9 months ago (2017-03-02 02:49:34 UTC) #4
Bernhard Bauer
On 2017/03/02 02:49:34, aelias wrote: > Hi bauerb@, I thought you might be able to ...
3 years, 9 months ago (2017-03-02 16:35:14 UTC) #7
aelias_OOO_until_Jul13
I expanded CL description and fixed a unit test. +sky@ for OWNERS review as thestig@ ...
3 years, 9 months ago (2017-03-02 22:49:09 UTC) #16
sky
LGTM
3 years, 9 months ago (2017-03-02 23:22:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2724203003/20001
3 years, 9 months ago (2017-03-02 23:33:01 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 23:44:38 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0df335a1ea5a09d4860168bc05bb...

Powered by Google App Engine
This is Rietveld 408576698