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

Issue 16141008: Do not show sync promo when RestoreOnStartupURLs policy is set (Closed)

Created:
7 years, 6 months ago by bartfab (slow)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Andrew T Wilson (Slow)
Visibility:
Public.

Description

Do not show sync promo when RestoreOnStartupURLs policy is set When first_run_tabs are set through master_preferences, the sync promo should be shown if not explicitly suppressed. When RestoreOnStartupURLs is set through policy, the sync promo should never be shown. This is long-standing behavior, as evidenced here: http://crbug.com/125467#c26 That behavior recently regressed with the sync promo appearing even if RestoreOnStartupURLs are set. The regression happened here: https://chromiumcodereview.appspot.com/12638005 This CL fixes the regression by ensuring that when RestoreOnStartup=4 and RestoreOnStartupURLs are set, the sync promo is not shown. The CL also adds browser tests to protect against similar regressions in the future. BUG=244849 TEST=Manual and new browser_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206915

Patch Set 1 #

Patch Set 2 : Fix clang compile. #

Patch Set 3 : Fix browser tests on Windows. #

Patch Set 4 : Fix browser tests on Windows, take 2. #

Patch Set 5 : Rebased. #

Patch Set 6 : Rebased. #

Total comments: 2

Patch Set 7 : Nit addressed. TODO added. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -33 lines) Patch
M base/command_line.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 5 6 3 chunks +380 lines, -3 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 5 6 4 chunks +30 lines, -30 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
bartfab (slow)
Hi Scott, Could you please review? Hi Brett, Could you please review the change to ...
7 years, 6 months ago (2013-06-05 09:23:51 UTC) #1
sail
Hi, I'm not sure why restore on startup should suppress the sync promo. Can you ...
7 years, 6 months ago (2013-06-05 18:38:17 UTC) #2
bartfab (slow)
On 2013/06/05 18:38:17, sail wrote: > Hi, I'm not sure why restore on startup should ...
7 years, 6 months ago (2013-06-05 19:08:45 UTC) #3
bartfab (slow)
7 years, 6 months ago (2013-06-11 12:41:05 UTC) #4
bartfab (slow)
Scott, Brett - Review ping.
7 years, 6 months ago (2013-06-11 14:45:40 UTC) #5
sky
startup clearly needs to be refactored so that you don't need to write a browser ...
7 years, 6 months ago (2013-06-11 16:32:54 UTC) #6
bartfab (slow)
Hi Mark, Darin, Will: Brett seems to be out. Could any of you do an ...
7 years, 6 months ago (2013-06-12 10:55:15 UTC) #7
bartfab (slow)
As requested by Sailesh, I filed a bug and added a TODO to rethink and ...
7 years, 6 months ago (2013-06-12 10:59:40 UTC) #8
Mark Mentovai
LGTM for the change in base on its own, although I’m not convinced that messing ...
7 years, 6 months ago (2013-06-12 15:29:09 UTC) #9
bartfab (slow)
On 2013/06/12 15:29:09, Mark Mentovai wrote: > LGTM for the change in base on its ...
7 years, 6 months ago (2013-06-12 18:25:42 UTC) #10
Mark Mentovai
OK, well, my LGTM applies to base, and I have no real objections, so you ...
7 years, 6 months ago (2013-06-12 18:30:15 UTC) #11
sail
lgtm
7 years, 6 months ago (2013-06-13 06:44:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/16141008/94001
7 years, 6 months ago (2013-06-17 18:24:36 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=164447
7 years, 6 months ago (2013-06-17 22:58:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/16141008/94001
7 years, 6 months ago (2013-06-17 23:01:13 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=164625
7 years, 6 months ago (2013-06-18 02:10:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/16141008/94001
7 years, 6 months ago (2013-06-18 06:04:34 UTC) #17
commit-bot: I haz the power
7 years, 6 months ago (2013-06-18 08:19:24 UTC) #18
Message was sent while issue was closed.
Change committed as 206915

Powered by Google App Engine
This is Rietveld 408576698