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

Issue 1312693005: Remove migration of obsolete value for "session.restore_on_startup". (Closed)

Created:
5 years, 3 months ago by sdefresne
Modified:
5 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@url-to-restore-on-startup
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove migration of obsolete value for "session.restore_on_startup". Remove support of migration of kPrefValueHomePage (0) for the preference "session.restore_on_startup" that was obsolete when M-19 was released. Remove all usage of the constant kPrefValueHomePage and of the preference "session.restore_on_startup_migrated" tracking whether the migration had happened. BUG=525079 Committed: https://crrev.com/245bbd424846eb696fea8b35718df3b7e9892c9f Cr-Commit-Position: refs/heads/master@{#364142}

Patch Set 1 #

Patch Set 2 : Remove unused free function #

Total comments: 13

Patch Set 3 : Address comments by bartfab & rebase #

Total comments: 5

Patch Set 4 : Rebase #

Total comments: 6

Patch Set 5 : Address comments #

Total comments: 3

Patch Set 6 : Use // instead of /* */ for deprecation comment on kPrefValueHomePage value. #

Patch Set 7 : Change comment for kRestoreOnStartup #

Total comments: 4

Patch Set 8 : Re-enable the two tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -392 lines) Patch
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 2 chunks +1 line, -53 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/prefs/session_startup_pref.h View 1 2 3 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/prefs/session_startup_pref.cc View 1 2 3 5 chunks +0 lines, -62 lines 0 comments Download
M chrome/browser/prefs/session_startup_pref_unittest.cc View 1 2 3 2 chunks +0 lines, -94 lines 0 comments Download
M chrome/browser/profile_resetter/profile_resetter.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sessions/restore_on_startup_policy_handler.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/sessions/restore_on_startup_policy_handler.cc View 1 2 3 4 5 2 chunks +2 lines, -40 lines 0 comments Download
M chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc View 1 2 3 4 5 6 7 4 chunks +14 lines, -115 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -7 lines 0 comments Download

Messages

Total messages: 39 (11 generated)
sdefresne
Please review this change.
5 years, 3 months ago (2015-08-26 16:17:16 UTC) #2
gab
lgtm pending approval from enterprise on email thread. Thanks! Gab https://codereview.chromium.org/1312693005/diff/20001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (left): https://codereview.chromium.org/1312693005/diff/20001/chrome/browser/policy/policy_browsertest.cc#oldcode3196 ...
5 years, 3 months ago (2015-08-27 17:52:48 UTC) #3
bartfab (slow)
Just some nits in the code. However, as suggested by Gabriel, we need to make ...
5 years, 3 months ago (2015-08-31 15:36:43 UTC) #5
sdefresne
Thank you for the review, addressed all the comment. I think the email thread was ...
5 years, 3 months ago (2015-09-02 11:30:19 UTC) #6
bartfab (slow)
The code looks OK to me but the thread is still on-going. If we cannot ...
5 years, 3 months ago (2015-09-03 09:34:37 UTC) #7
sdefresne
On 2015/09/03 at 09:34:37, bartfab wrote: > The code looks OK to me but the ...
5 years, 3 months ago (2015-09-03 09:57:48 UTC) #8
gab
One more thought on the code itself. https://codereview.chromium.org/1312693005/diff/40001/chrome/browser/prefs/session_startup_pref.cc File chrome/browser/prefs/session_startup_pref.cc (left): https://codereview.chromium.org/1312693005/diff/40001/chrome/browser/prefs/session_startup_pref.cc#oldcode60 chrome/browser/prefs/session_startup_pref.cc:60: registry->RegisterBooleanPref(prefs::kRestoreOnStartupMigrated, false); ...
5 years, 3 months ago (2015-09-08 21:23:50 UTC) #9
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1312693005/diff/40001/chrome/browser/prefs/session_startup_pref.cc File chrome/browser/prefs/session_startup_pref.cc (left): https://codereview.chromium.org/1312693005/diff/40001/chrome/browser/prefs/session_startup_pref.cc#oldcode60 chrome/browser/prefs/session_startup_pref.cc:60: registry->RegisterBooleanPref(prefs::kRestoreOnStartupMigrated, false); On 2015/09/08 21:23:50, gab (very slow ...
5 years, 2 months ago (2015-10-09 19:11:31 UTC) #11
gab
On 2015/09/03 09:34:37, bartfab (slow) wrote: > The code looks OK to me but the ...
5 years, 1 month ago (2015-11-12 13:43:45 UTC) #12
sdefresne
On 2015/11/12 at 13:43:45, gab wrote: > On 2015/09/03 09:34:37, bartfab (slow) wrote: > > ...
5 years, 1 month ago (2015-11-12 13:59:57 UTC) #13
bartfab (slow)
On 2015/11/12 13:59:57, sdefresne wrote: > On 2015/11/12 at 13:43:45, gab wrote: > > On ...
5 years, 1 month ago (2015-11-12 14:05:52 UTC) #14
sdefresne
gab: Please take another look! https://codereview.chromium.org/1312693005/diff/40001/chrome/browser/prefs/session_startup_pref.cc File chrome/browser/prefs/session_startup_pref.cc (left): https://codereview.chromium.org/1312693005/diff/40001/chrome/browser/prefs/session_startup_pref.cc#oldcode60 chrome/browser/prefs/session_startup_pref.cc:60: registry->RegisterBooleanPref(prefs::kRestoreOnStartupMigrated, false); On 2015/10/09 ...
5 years ago (2015-12-02 14:35:18 UTC) #16
gab
lgtm w/ comments Once again, amazed at how much code was supporting this long-unrequired migration, ...
5 years ago (2015-12-02 21:27:19 UTC) #17
sdefresne
https://codereview.chromium.org/1312693005/diff/60001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/1312693005/diff/60001/chrome/browser/prefs/browser_prefs.cc#newcode236 chrome/browser/prefs/browser_prefs.cc:236: // Deprecated 12/2015. On 2015/12/02 at 21:27:18, gab wrote: ...
5 years ago (2015-12-03 10:28:33 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312693005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312693005/80001
5 years ago (2015-12-03 15:08:54 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/124570)
5 years ago (2015-12-03 15:18:06 UTC) #23
sdefresne
atwilson: please review the following as OWNERS chrome/browser/policy/policy_browsertest.cc chrome/browser/sessions/restore_on_startup_policy_handler.cc chrome/browser/sessions/restore_on_startup_policy_handler.h chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc sky: please review the ...
5 years ago (2015-12-03 15:21:52 UTC) #25
gab
Thanks, still lgtm, but a single nit on latest patch set. https://codereview.chromium.org/1312693005/diff/80001/chrome/browser/sessions/restore_on_startup_policy_handler.cc File chrome/browser/sessions/restore_on_startup_policy_handler.cc (right): ...
5 years ago (2015-12-03 15:28:50 UTC) #26
sdefresne
https://codereview.chromium.org/1312693005/diff/80001/chrome/browser/sessions/restore_on_startup_policy_handler.cc File chrome/browser/sessions/restore_on_startup_policy_handler.cc (right): https://codereview.chromium.org/1312693005/diff/80001/chrome/browser/sessions/restore_on_startup_policy_handler.cc#newcode51 chrome/browser/sessions/restore_on_startup_policy_handler.cc:51: case 0 /* kPrefValueHomePage */: On 2015/12/03 at 15:28:49, ...
5 years ago (2015-12-03 15:34:13 UTC) #27
sky
LGTM
5 years ago (2015-12-03 17:34:23 UTC) #28
sdefresne
atwilson: ping?
5 years ago (2015-12-07 10:19:59 UTC) #29
bartfab (slow)
lgtm https://codereview.chromium.org/1312693005/diff/80001/chrome/common/pref_names.cc File chrome/common/pref_names.cc (right): https://codereview.chromium.org/1312693005/diff/80001/chrome/common/pref_names.cc#newcode69 chrome/common/pref_names.cc:69: // 0: (deprecated) open the homepage on startup. ...
5 years ago (2015-12-08 10:42:05 UTC) #30
sdefresne
atwilson: ping?
5 years ago (2015-12-08 16:39:04 UTC) #31
Andrew T Wilson (Slow)
lgtm if you re-add the tests I talked to you about. https://codereview.chromium.org/1312693005/diff/120001/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc File chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc (left): ...
5 years ago (2015-12-08 18:09:35 UTC) #32
sdefresne
https://codereview.chromium.org/1312693005/diff/120001/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc File chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc (left): https://codereview.chromium.org/1312693005/diff/120001/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc#oldcode92 chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc:92: new base::FundamentalValue(SessionStartupPref::kPrefValueHomePage)); On 2015/12/08 at 18:09:34, Andrew T Wilson ...
5 years ago (2015-12-09 18:41:06 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312693005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312693005/140001
5 years ago (2015-12-09 18:42:22 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years ago (2015-12-09 20:20:38 UTC) #37
commit-bot: I haz the power
5 years ago (2015-12-09 20:21:16 UTC) #39
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/245bbd424846eb696fea8b35718df3b7e9892c9f
Cr-Commit-Position: refs/heads/master@{#364142}

Powered by Google App Engine
This is Rietveld 408576698