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

Issue 8879016: Add more per-tab preferences. (Closed)

Created:
9 years ago by mnaganov (inactive)
Modified:
8 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, creis+watch_chromium.org, akalin, ajwong+watch_chromium.org, Raghu Simha, brettw-cc_chromium.org, kkania, ncarter (slow), robertshield, tim (not reviewing), Paweł Hajdan Jr., Avi (use Gerrit), darin-cc_chromium.org, jshin+watch_chromium.org, joth
Visibility:
Public.

Description

Add more per-tab preferences. intl.global.charset_default webkit.webprefs.global.standard_font_family webkit.webprefs.global.fixed_font_family webkit.webprefs.global.serif_font_family webkit.webprefs.global.sansserif_font_family webkit.webprefs.global.cursive_font_family webkit.webprefs.global.fantasy_font_family webkit.webprefs.global.default_font_size webkit.webprefs.global.default_fixed_font_size webkit.webprefs.global.minimum_font_size webkit.webprefs.global.minimum_logical_font_size webkit.webprefs.global.javascript_can_open_windows_automatically webkit.webprefs.global.loads_images_automatically webkit.webprefs.global.plugins_enabled BUG=105537 TEST=PrefsTabHelperTest*,PrefsTabHelperBrowserTest* For files that has only prefs names changes and require OWNERS approval: TBR=erikwright@chromium.org,gene@chromium.org,csilv@chromium.org,atwilson@chromium.org,mirandac@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115955

Patch Set 1 #

Patch Set 2 : Fix issues found on trybots #

Patch Set 3 : Fix browser_tests #

Total comments: 10

Patch Set 4 : Implemented preferences migration #

Total comments: 10

Patch Set 5 : Removed "migration done" preference #

Total comments: 8

Patch Set 6 : Comments addressed #

Total comments: 3

Patch Set 7 : CHECK -> DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+645 lines, -136 lines) Patch
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/browser_encoding_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/prefs/default_pref_store.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/prefs/default_pref_store.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/prefs/per_tab_user_pref_store.cc View 1 2 3 1 chunk +44 lines, -1 line 0 comments Download
M chrome/browser/prefs/pref_model_associator.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_model_associator.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_service.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_service.cc View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_service_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options/font_settings.html View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.cc View 1 2 3 4 5 6 4 chunks +17 lines, -16 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 4 5 9 chunks +172 lines, -32 lines 0 comments Download
A chrome/browser/ui/prefs/prefs_tab_helper_browsertest.cc View 1 2 3 4 5 1 chunk +89 lines, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper_unittest.cc View 1 2 3 4 5 2 chunks +149 lines, -18 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/encoding_menu_controller.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/advanced_options_handler.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/font_settings_handler.cc View 2 chunks +19 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/options/font_settings_utils_mac.mm View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 2 chunks +15 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 4 chunks +46 lines, -19 lines 0 comments Download
A chrome/test/data/profiles/webkit_global_migration/Default/Preferences View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
mnaganov (inactive)
Hi Mattias, I'm adding more per-tab overridable preferences. Changes are mostly mechanical.
9 years ago (2011-12-08 17:00:17 UTC) #1
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8879016/diff/4001/chrome/browser/net/chrome_url_request_context.cc File chrome/browser/net/chrome_url_request_context.cc (right): http://codereview.chromium.org/8879016/diff/4001/chrome/browser/net/chrome_url_request_context.cc#newcode284 chrome/browser/net/chrome_url_request_context.cc:284: prefs->GetString(prefs::kGlobalDefaultCharset); Are you OK with the request context reporting ...
9 years ago (2011-12-09 09:54:44 UTC) #2
mnaganov (inactive)
Thanks, Mattias! Your concern about preferences migration requires some additional work to be done. I ...
9 years ago (2011-12-12 18:19:03 UTC) #3
mnaganov (inactive)
Matias, I've implemented preferences migration. Please take a look! On 2011/12/12 18:19:03, Mikhail Naganov (Chromium) ...
9 years ago (2011-12-15 15:05:03 UTC) #4
Mattias Nissler (ping if slow)
Couple of comments. Note that I'll be on vacation from later today till after Christmas ...
9 years ago (2011-12-15 15:37:29 UTC) #5
mnaganov (inactive)
http://codereview.chromium.org/8879016/diff/8001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): http://codereview.chromium.org/8879016/diff/8001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode572 chrome/browser/ui/prefs/prefs_tab_helper.cc:572: if (prefs->GetBoolean(prefs::kWebKitSettingsMigratedToGlobal)) { On 2011/12/15 15:37:29, Mattias Nissler wrote: ...
9 years ago (2011-12-15 16:45:17 UTC) #6
Bernhard Bauer
Can you CC me on the bug for context? Thanks! http://codereview.chromium.org/8879016/diff/9025/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): http://codereview.chromium.org/8879016/diff/9025/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode543 ...
9 years ago (2011-12-21 16:41:32 UTC) #7
mnaganov (inactive)
http://codereview.chromium.org/8879016/diff/9025/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): http://codereview.chromium.org/8879016/diff/9025/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode543 chrome/browser/ui/prefs/prefs_tab_helper.cc:543: } kPrefNamesToMigrate[] = { On 2011/12/21 16:41:32, Bernhard Bauer ...
9 years ago (2011-12-21 18:43:33 UTC) #8
Bernhard Bauer
http://codereview.chromium.org/8879016/diff/9025/chrome/browser/prefs/per_tab_user_pref_store.cc File chrome/browser/prefs/per_tab_user_pref_store.cc (right): http://codereview.chromium.org/8879016/diff/9025/chrome/browser/prefs/per_tab_user_pref_store.cc#newcode10 chrome/browser/prefs/per_tab_user_pref_store.cc:10: RegisterOverlayProperty( I don't think we actually need a separate ...
9 years ago (2011-12-22 15:09:00 UTC) #9
mnaganov (inactive)
On 2011/12/22 15:09:00, Bernhard Bauer wrote: > http://codereview.chromium.org/8879016/diff/9025/chrome/browser/prefs/per_tab_user_pref_store.cc > File chrome/browser/prefs/per_tab_user_pref_store.cc (right): > > http://codereview.chromium.org/8879016/diff/9025/chrome/browser/prefs/per_tab_user_pref_store.cc#newcode10 ...
8 years, 12 months ago (2011-12-28 12:40:33 UTC) #10
Bernhard Bauer
http://codereview.chromium.org/8879016/diff/22001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): http://codereview.chromium.org/8879016/diff/22001/chrome/browser/prefs/pref_model_associator.cc#newcode380 chrome/browser/prefs/pref_model_associator.cc:380: CHECK(synced_preferences_.count(name) == 0); Make this a DCHECK? And should ...
8 years, 12 months ago (2011-12-28 13:33:41 UTC) #11
mnaganov (inactive)
http://codereview.chromium.org/8879016/diff/22001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): http://codereview.chromium.org/8879016/diff/22001/chrome/browser/prefs/pref_model_associator.cc#newcode380 chrome/browser/prefs/pref_model_associator.cc:380: CHECK(synced_preferences_.count(name) == 0); On 2011/12/28 13:33:42, Bernhard Bauer wrote: ...
8 years, 12 months ago (2011-12-28 13:41:39 UTC) #12
Bernhard Bauer
LGTM once you have uploaded the fixed version :) http://codereview.chromium.org/8879016/diff/22001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): http://codereview.chromium.org/8879016/diff/22001/chrome/browser/prefs/pref_model_associator.cc#newcode380 chrome/browser/prefs/pref_model_associator.cc:380: ...
8 years, 12 months ago (2011-12-28 22:35:30 UTC) #13
mnaganov (inactive)
Uploaded. Sorry for the delay. On 2011/12/28 22:35:30, Bernhard Bauer wrote: > LGTM once you ...
8 years, 12 months ago (2011-12-29 10:14:00 UTC) #14
mnaganov (inactive)
Adding OWNERS of files that has only preference names changes and require approval.
8 years, 12 months ago (2011-12-29 10:35:05 UTC) #15
Miranda Callahan
On 2011/12/29 10:35:05, Mikhail Naganov (Chromium) wrote: > Adding OWNERS of files that has only ...
8 years, 12 months ago (2011-12-29 14:41:23 UTC) #16
Tyler Breisacher (Chromium)
I think the changes under options/ need to be copied into options2/ -- see http://codereview.chromium.org/9071026/
8 years, 11 months ago (2012-01-03 23:12:22 UTC) #17
James Hawkins
Please do not TBR changes that are non-trivial. Yes it's a judgement call, but I'd ...
8 years, 11 months ago (2012-01-03 23:23:52 UTC) #18
mnaganov (inactive)
8 years, 11 months ago (2012-01-05 11:00:22 UTC) #19
On 2012/01/03 23:23:52, James Hawkins wrote:
> Please do not TBR changes that are non-trivial. Yes it's a judgement call, but
> I'd certainly call this non-trivial. As Tyler noted, this caused a regression.

I'm sorry for creating a regression, and thank you for fixing it! The patch was
properly reviewed, I TBR'd people from OWNERS files because:

- changes in their files were really trivial and mechanical -- only properties
names change;

- waiting for too long for such kind of a change will add more and more
regressions as people are adding new stuff; this new options2 UI has been added
during the time I was working on this patch;

- it was a pre-NY week, everybody were having vacations, so I had no chance
getting approvals from so many people in time;

Powered by Google App Engine
This is Rietveld 408576698