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

Issue 12330008: Get rid of the ability to unregister preferences. (Closed)

Created:
7 years, 10 months ago by Jói
Modified:
7 years, 10 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

Get rid of the ability to unregister preferences. This was being used only in a couple of places that were clearing or migrating old prefs, and as far as I understand, it is not necessary, especially if we hide the names of those old prefs from users outside of the class that clears them. Also, do registrations of the prefs being migrated at up-front registration time rather than in the migration functions. TBR=ivankr@chromium.org BUG=155525 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183816

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix browser_tests that tested migration in PrefsTabHelper. #

Total comments: 2

Patch Set 3 : Reference history of kBackupPref. #

Patch Set 4 : Merge to head for commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -130 lines) Patch
M base/prefs/pref_registry.h View 3 chunks +6 lines, -13 lines 0 comments Download
M base/prefs/pref_registry.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M base/prefs/pref_service.h View 1 chunk +0 lines, -3 lines 0 comments Download
M base/prefs/pref_service.cc View 3 chunks +1 line, -14 lines 0 comments Download
M chrome/browser/chromeos/login/oauth2_login_manager.h View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/oauth2_login_manager.cc View 3 chunks +19 lines, -13 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 4 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/prefs/pref_model_associator.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/prefs/pref_model_associator.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/prefs/pref_service_syncable.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/prefs/pref_service_syncable.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper_browsertest.cc View 1 2 chunks +44 lines, -28 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Jói
7 years, 10 months ago (2013-02-20 15:32:59 UTC) #1
Jói
https://codereview.chromium.org/12330008/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://codereview.chromium.org/12330008/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode589 chrome/browser/ui/prefs/prefs_tab_helper.cc:589: prefs->ClearPref(kPrefNamesToMigrate[i].from); Note, I moved this here since there seems ...
7 years, 10 months ago (2013-02-20 15:34:49 UTC) #2
Mattias Nissler (ping if slow)
LGTM with one request (feel free to ignore if you can't find the required information ...
7 years, 10 months ago (2013-02-20 17:17:27 UTC) #3
Jói
https://codereview.chromium.org/12330008/diff/5002/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/12330008/diff/5002/chrome/browser/prefs/browser_prefs.cc#newcode159 chrome/browser/prefs/browser_prefs.cc:159: // Name of an old pref that is cleared ...
7 years, 10 months ago (2013-02-21 12:05:10 UTC) #4
Mattias Nissler (ping if slow)
LGTM. Thanks for adding the comment explaining the backup pref.
7 years, 10 months ago (2013-02-21 13:10:21 UTC) #5
Jói
TBR=ivankr@chromium.org for usage update for Prefs API change, in chrome/browser/chromeos/login. Cheers, Jói
7 years, 10 months ago (2013-02-21 15:10:11 UTC) #6
Jói
Committed patchset #4 manually as r183816 (presubmit successful).
7 years, 10 months ago (2013-02-21 15:10:52 UTC) #7
Ivan Korotkov
7 years, 10 months ago (2013-02-21 17:33:52 UTC) #8
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698