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 944433002: Revamp the MigrateBrowserPrefs and MigrateUserPrefs code. (Closed)

Created:
5 years, 10 months ago by rkaplow
Modified:
5 years, 9 months ago
CC:
chromium-reviews, Bernhard Bauer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revamp the MigrateBrowserPrefs and MigrateUserPrefs code. Restructure it so it is organized by date-added, and delete all migrations that are sufficiently old. BUG=69995, 165672 Committed: https://crrev.com/f216cafc43a6f43937ecc2e178f16217bd736c4b Cr-Commit-Position: refs/heads/master@{#318780}

Patch Set 1 #

Patch Set 2 : readd method #

Total comments: 2

Patch Set 3 : gab comments #

Patch Set 4 : gab comments #

Total comments: 22

Patch Set 5 : gab comments #

Total comments: 6

Patch Set 6 : extra removal #

Total comments: 28

Patch Set 7 : more gab comments and rebase #

Patch Set 8 : more fixes #

Patch Set 9 : revert argument for profileprefs to original state #

Patch Set 10 : 1 line whitespace change #

Patch Set 11 : second half of gab comments #

Patch Set 12 : readd kbrowserwindowplacement to ui_prefs.cc #

Total comments: 4

Patch Set 13 : more comments. removing default_pinned_apps-field_trial #

Patch Set 14 : Remove include/call to default_pinned_apps #

Patch Set 15 : delete migration test #

Total comments: 2

Patch Set 16 : clean up other pref_service test #

Patch Set 17 : additional cleanup #

Total comments: 12

Patch Set 18 : gab comments #

Patch Set 19 : move comments #

Patch Set 20 : change asserts to expect in setupuserdatadirectory #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -290 lines) Patch
M chrome/browser/chromeos/login/default_pinned_apps_field_trial.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -29 lines 0 comments Download
M chrome/browser/chromeos/login/default_pinned_apps_field_trial.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -32 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.h View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -5 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +26 lines, -85 lines 0 comments Download
M chrome/browser/prefs/pref_service_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +16 lines, -103 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +0 lines, -26 lines 0 comments Download

Messages

Total messages: 66 (19 generated)
rkaplow
noms@chromium.org: Please review changes in profile gab@chromium.org: Please review changes in prefs
5 years, 10 months ago (2015-02-19 18:48:20 UTC) #2
gab
As mentioned on the bug, these calls have since been reused to cleanup more recently ...
5 years, 10 months ago (2015-02-20 14:47:05 UTC) #3
gab
As mentioned on the bug, these calls have since been reused to cleanup more recently ...
5 years, 10 months ago (2015-02-20 14:47:09 UTC) #4
rkaplow
Ok, sounds good. I left the method, but removed the current usage. Added a note ...
5 years, 10 months ago (2015-02-20 17:57:17 UTC) #5
noms (inactive)
profiles lgtm
5 years, 10 months ago (2015-02-20 18:28:01 UTC) #6
gab
https://codereview.chromium.org/944433002/diff/20001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (left): https://codereview.chromium.org/944433002/diff/20001/chrome/browser/profiles/profile_impl.cc#oldcode861 chrome/browser/profiles/profile_impl.cc:861: // TODO(ivankr): remove cleanup code eventually (crbug.com/165672). No, we ...
5 years, 10 months ago (2015-02-20 19:04:03 UTC) #7
rkaplow
https://codereview.chromium.org/944433002/diff/20001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (left): https://codereview.chromium.org/944433002/diff/20001/chrome/browser/profiles/profile_impl.cc#oldcode861 chrome/browser/profiles/profile_impl.cc:861: // TODO(ivankr): remove cleanup code eventually (crbug.com/165672). On 2015/02/20 ...
5 years, 10 months ago (2015-02-20 19:08:53 UTC) #8
rkaplow
On 2015/02/20 19:08:53, rkaplow wrote: > https://codereview.chromium.org/944433002/diff/20001/chrome/browser/profiles/profile_impl.cc > File chrome/browser/profiles/profile_impl.cc (left): > > https://codereview.chromium.org/944433002/diff/20001/chrome/browser/profiles/profile_impl.cc#oldcode861 > ...
5 years, 10 months ago (2015-02-20 19:18:54 UTC) #9
rkaplow
gab: this more what you had in mind?
5 years, 10 months ago (2015-02-20 19:31:23 UTC) #11
gab
Thanks for the cleanup, yes this is more along the lines of what I had ...
5 years, 10 months ago (2015-02-20 20:33:58 UTC) #12
rkaplow
msw@chromium.org: Please review changes in browser/ui Apologizes reviewers, I did a rebase locally and didn't ...
5 years, 10 months ago (2015-02-20 21:58:08 UTC) #14
gab
Woot, this cleanup is epic! Please update CL title and definition according to what it ...
5 years, 10 months ago (2015-02-23 16:09:38 UTC) #15
gab
+Bernhard FYI, we're removing all pref migration/cleanup code that is a year+ old, let us ...
5 years, 10 months ago (2015-02-23 16:11:57 UTC) #16
Bernhard Bauer
W00t, LGTM!
5 years, 10 months ago (2015-02-23 16:16:46 UTC) #18
rkaplow
Sorry I made a bit of a hash of the uploads and the rebasing. Let ...
5 years, 10 months ago (2015-02-23 22:55:04 UTC) #19
rkaplow
On 2015/02/23 22:55:04, rkaplow wrote: > Sorry I made a bit of a hash of ...
5 years, 10 months ago (2015-02-23 22:56:35 UTC) #20
rkaplow
https://codereview.chromium.org/944433002/diff/60001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (left): https://codereview.chromium.org/944433002/diff/60001/chrome/browser/prefs/browser_prefs.cc#oldcode561 chrome/browser/prefs/browser_prefs.cc:561: prefs->ClearPref(kBackupPref); On 2015/02/23 16:09:37, gab wrote: > On 2015/02/20 ...
5 years, 10 months ago (2015-02-23 23:27:53 UTC) #21
gab
lg, a few more things can be removed and then we're good to go I ...
5 years, 10 months ago (2015-02-24 20:55:20 UTC) #22
rkaplow
https://codereview.chromium.org/944433002/diff/80001/chrome/common/pref_names.h File chrome/common/pref_names.h (right): https://codereview.chromium.org/944433002/diff/80001/chrome/common/pref_names.h#newcode168 chrome/common/pref_names.h:168: extern const char kMultipleProfilePrefMigration[]; // OBSOLETE On 2015/02/24 20:55:19, ...
5 years, 10 months ago (2015-02-24 22:41:11 UTC) #23
rkaplow
piman@chromium.org: Please review changes in browser/chromeos/login
5 years, 10 months ago (2015-02-25 16:44:38 UTC) #25
gab
lgtm, thanks! Please modify title / first line of CL description with: s/MigrateUserPref/MigrateBrowserPrefs. Also, add ...
5 years, 10 months ago (2015-02-25 19:26:48 UTC) #26
rkaplow
Add nkostylev for browser/chromeos/login
5 years, 10 months ago (2015-02-25 20:07:18 UTC) #28
piman
lgtm
5 years, 10 months ago (2015-02-25 23:19:45 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/944433002/240001
5 years, 10 months ago (2015-02-26 13:46:23 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/12439)
5 years, 10 months ago (2015-02-26 14:43:01 UTC) #35
rkaplow
On 2015/02/26 14:43:01, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 10 months ago (2015-02-26 14:54:52 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/944433002/260001
5 years, 10 months ago (2015-02-26 14:56:00 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/38774)
5 years, 10 months ago (2015-02-26 20:34:13 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/944433002/260001
5 years, 10 months ago (2015-02-26 20:37:54 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/31107)
5 years, 10 months ago (2015-02-27 02:43:16 UTC) #45
Nikita (slow)
lgtm
5 years, 9 months ago (2015-02-27 11:41:27 UTC) #46
rkaplow
gab: hopefully last change. I deleted the test PreservedWindowPlacementIsMigrated. I believe we should no longer ...
5 years, 9 months ago (2015-03-02 15:44:16 UTC) #47
rkaplow
On 2015/03/02 15:44:16, rkaplow wrote: > gab: hopefully last change. I deleted the test > ...
5 years, 9 months ago (2015-03-02 16:45:35 UTC) #48
rkaplow
On 2015/03/02 16:45:35, rkaplow wrote: > On 2015/03/02 15:44:16, rkaplow wrote: > > gab: hopefully ...
5 years, 9 months ago (2015-03-02 16:45:51 UTC) #49
gab
Woot, more code removal :-) -- I think that should be the end of the ...
5 years, 9 months ago (2015-03-02 17:21:18 UTC) #50
rkaplow
https://codereview.chromium.org/944433002/diff/280001/chrome/browser/prefs/pref_service_browsertest.cc File chrome/browser/prefs/pref_service_browsertest.cc (right): https://codereview.chromium.org/944433002/diff/280001/chrome/browser/prefs/pref_service_browsertest.cc#newcode55 chrome/browser/prefs/pref_service_browsertest.cc:55: explicit PreferenceServiceTest(bool new_profile) : new_profile_(new_profile) { On 2015/03/02 17:21:18, ...
5 years, 9 months ago (2015-03-02 19:23:26 UTC) #51
gab
Last couple nits :-) https://codereview.chromium.org/944433002/diff/320001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/944433002/diff/320001/chrome/browser/prefs/browser_prefs.cc#newcode539 chrome/browser/prefs/browser_prefs.cc:539: // This method should be ...
5 years, 9 months ago (2015-03-02 19:28:09 UTC) #52
rkaplow
https://codereview.chromium.org/944433002/diff/320001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/944433002/diff/320001/chrome/browser/prefs/browser_prefs.cc#newcode539 chrome/browser/prefs/browser_prefs.cc:539: // This method should be periodically pruned of year+ ...
5 years, 9 months ago (2015-03-02 19:36:36 UTC) #53
gab
https://codereview.chromium.org/944433002/diff/320001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/944433002/diff/320001/chrome/browser/prefs/browser_prefs.cc#newcode539 chrome/browser/prefs/browser_prefs.cc:539: // This method should be periodically pruned of year+ ...
5 years, 9 months ago (2015-03-02 20:05:08 UTC) #54
rkaplow
entirely agree. https://codereview.chromium.org/944433002/diff/320001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/944433002/diff/320001/chrome/browser/prefs/browser_prefs.cc#newcode539 chrome/browser/prefs/browser_prefs.cc:539: // This method should be periodically pruned ...
5 years, 9 months ago (2015-03-02 20:21:35 UTC) #55
gab
lgtm, thanks a lot for this 200+ lines cleanup :-)!
5 years, 9 months ago (2015-03-02 20:24:10 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/944433002/360001
5 years, 9 months ago (2015-03-02 20:27:33 UTC) #59
rkaplow
One last change, I think. changed ASSERT_TRUE to EXPECT_TRUE in bool SetUpUserDataDirectory()
5 years, 9 months ago (2015-03-02 20:59:05 UTC) #60
gab
On 2015/03/02 20:59:05, rkaplow wrote: > One last change, I think. changed ASSERT_TRUE to EXPECT_TRUE ...
5 years, 9 months ago (2015-03-02 21:01:31 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/944433002/370010
5 years, 9 months ago (2015-03-02 21:03:45 UTC) #64
commit-bot: I haz the power
Committed patchset #20 (id:370010)
5 years, 9 months ago (2015-03-02 22:37:54 UTC) #65
commit-bot: I haz the power
5 years, 9 months ago (2015-03-02 22:38:57 UTC) #66
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/f216cafc43a6f43937ecc2e178f16217bd736c4b
Cr-Commit-Position: refs/heads/master@{#318780}

Powered by Google App Engine
This is Rietveld 408576698