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

Issue 10702097: Adds browser preferences to configure first-run flow on Windows 8. (Closed)

Created:
8 years, 5 months ago by motek.
Modified:
8 years, 4 months ago
CC:
chromium-reviews, santhoshba_google.com
Visibility:
Public.

Description

Adds browser preferences to configure first-run flow on Windows 8. - master_prefefrencs/installerdata file may now contain { "distribution": { "suppress_first_run_default_browser_prompt": true } } to suppress the Win8+ first-run dialog that walks the user through making Chrome the default browser. If the dialog is suppressed, the default browser butterbar/prompt appears on first run instead. - master_preferences/installerdata file may now contain { "browser": { "suppress_switch_to_metro_mode_on_set_default": true } } to suppress switching to metro mode on Win8+ immediately after Chrome is made the default browser via the first-run dialog. This CL also removes the non-dialog mode of SetAsDefaultBrowserUI and fixes a problem where the dialog would be shown only when master preferences were not given. BUG=135255, 135256, 135257 TEST=Verify that modifiers described above act as advertised in setup procedure on Win8. If both prefs are absent, the program should show a modal set-default dialog and upon successful change restart Chrome *into the normal first-run flow* in Metro. Note that butter-bar set default is not expected to restart into metro. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149881

Patch Set 1 #

Total comments: 18

Patch Set 2 : Addressed reviewer's remarks. #

Patch Set 3 : Merged suppress-dialog and check-default-on-first run prefs. #

Total comments: 21

Patch Set 4 : A comment fix. #

Total comments: 12

Patch Set 5 : Addressed grt@'s remarks. #

Total comments: 4

Patch Set 6 : Addressed owner's remarks. #

Patch Set 7 : Changed flag name along with gab@'s suggestion. #

Patch Set 8 : Reverted the most recent name change. #

Total comments: 12

Patch Set 9 : Addressed owner's remarks. #

Total comments: 4

Patch Set 10 : Renamed the new field in SBC. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -46 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/first_run/first_run.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/first_run/first_run_win.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 2 7 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/startup/default_browser_prompt.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/startup/default_browser_prompt_win.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.h View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/set_as_default_browser_ui.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/set_as_default_browser_ui.cc View 7 3 chunks +14 lines, -26 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 7 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
motek.
Hi, a minor review waiting for you guys...
8 years, 5 months ago (2012-07-04 22:14:00 UTC) #1
grt (UTC plus 2)
i think the kDefaultBrowserFlowDialogEnabled preference should be removed and replaced with a "distribution" parameter named ...
8 years, 5 months ago (2012-07-05 17:16:09 UTC) #2
motek.
https://chromiumcodereview.appspot.com/10702097/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://chromiumcodereview.appspot.com/10702097/diff/1/chrome/browser/chrome_browser_main.cc#newcode1647 chrome/browser/chrome_browser_main.cc:1647: chrome::ShowFirstRunDefaultBrowserPrompt(profile_); On 2012/07/05 17:16:09, grt wrote: > if my ...
8 years, 5 months ago (2012-07-05 20:22:26 UTC) #3
motek.
On top of previous changes (as requested by the reviewer), I have removed one of ...
8 years, 5 months ago (2012-07-24 12:38:18 UTC) #4
gab
On 2012/07/24 12:38:18, motek. wrote: > On top of previous changes (as requested by the ...
8 years, 5 months ago (2012-07-24 16:37:13 UTC) #5
gab
Initial comments. http://codereview.chromium.org/10702097/diff/12001/chrome/browser/ui/browser_ui_prefs.cc File chrome/browser/ui/browser_ui_prefs.cc (right): http://codereview.chromium.org/10702097/diff/12001/chrome/browser/ui/browser_ui_prefs.cc#newcode95 chrome/browser/ui/browser_ui_prefs.cc:95: prefs->RegisterBooleanPref(prefs::kSuppressSwitchToMetroModeOnSetDefault, Double-negation in settings usually leads to ...
8 years, 5 months ago (2012-07-24 17:43:16 UTC) #6
motek.
Unfortunately, I disagree with gab@'s main suggestions. Let's discuss. https://chromiumcodereview.appspot.com/10702097/diff/12001/chrome/browser/ui/browser_ui_prefs.cc File chrome/browser/ui/browser_ui_prefs.cc (right): https://chromiumcodereview.appspot.com/10702097/diff/12001/chrome/browser/ui/browser_ui_prefs.cc#newcode95 chrome/browser/ui/browser_ui_prefs.cc:95: ...
8 years, 5 months ago (2012-07-25 10:08:58 UTC) #7
grt (UTC plus 2)
lg. just some small comments. https://chromiumcodereview.appspot.com/10702097/diff/12001/chrome/installer/util/master_preferences_constants.cc File chrome/installer/util/master_preferences_constants.cc (right): https://chromiumcodereview.appspot.com/10702097/diff/12001/chrome/installer/util/master_preferences_constants.cc#newcode35 chrome/installer/util/master_preferences_constants.cc:35: "suppress_first_run_default_browser_prompt"; On 2012/07/25 10:08:58, ...
8 years, 5 months ago (2012-07-25 10:54:55 UTC) #8
grt (UTC plus 2)
please document in the CL description specifically what this adds/removes: - master_prefefrencs/installerdata file may now ...
8 years, 5 months ago (2012-07-25 10:55:36 UTC) #9
grt (UTC plus 2)
also, please put some instructions for QA in the TEST= line.
8 years, 5 months ago (2012-07-25 11:46:17 UTC) #10
motek.
I've addressed grt@'s comments and updated the CL's description as suggested. https://chromiumcodereview.appspot.com/10702097/diff/22001/chrome/browser/ui/startup/default_browser_prompt.h File chrome/browser/ui/startup/default_browser_prompt.h (right): ...
8 years, 5 months ago (2012-07-25 12:10:39 UTC) #11
grt (UTC plus 2)
lgtm
8 years, 5 months ago (2012-07-25 12:22:30 UTC) #12
motek.
Hi sky@, Could I possibly bother you for OWNER's review? This has been lgtmd for ...
8 years, 5 months ago (2012-07-25 12:26:58 UTC) #13
sky
https://chromiumcodereview.appspot.com/10702097/diff/25002/chrome/browser/ui/startup/default_browser_prompt.h File chrome/browser/ui/startup/default_browser_prompt.h (right): https://chromiumcodereview.appspot.com/10702097/diff/25002/chrome/browser/ui/startup/default_browser_prompt.h#newcode16 chrome/browser/ui/startup/default_browser_prompt.h:16: bool permit_prompt_on_first_run); Why is this taking a boolean indicating ...
8 years, 4 months ago (2012-07-25 16:09:56 UTC) #14
gab
Comments on comments. @gideonwald, @santhoshba: PTAL at the comment you are tagged in below. Cheers, ...
8 years, 4 months ago (2012-07-25 16:39:55 UTC) #15
gideonwald
On 2012/07/25 16:39:55, gab wrote: > Comments on comments. > > @gideonwald, @santhoshba: PTAL at ...
8 years, 4 months ago (2012-07-25 16:46:07 UTC) #16
gab
[+somast] (as i think gideon intended in the previous message!) On Wed, Jul 25, 2012 ...
8 years, 4 months ago (2012-07-25 16:48:25 UTC) #17
motek.
> I agree with leaving the existing one, even though it'll mean that the new ...
8 years, 4 months ago (2012-07-25 17:16:15 UTC) #18
somast
On 2012/07/25 17:16:15, motek. wrote: > > I agree with leaving the existing one, even ...
8 years, 4 months ago (2012-07-25 17:19:55 UTC) #19
gab
Ah ok, I see, thanks for your input Somas. We should keep the new pref ...
8 years, 4 months ago (2012-07-25 18:31:42 UTC) #20
santhoshba
Yeah, after thinking about it I agree with Somas here. I understand the concern about ...
8 years, 4 months ago (2012-07-25 21:37:04 UTC) #21
motek.
OK. So it stays as proposed. I am moving on to addressing sky@'s remarks. On ...
8 years, 4 months ago (2012-07-26 09:50:42 UTC) #22
motek.
On 2012/07/25 16:39:55, gab wrote: > Ok, maybe I'm not clear on the "very specific ...
8 years, 4 months ago (2012-07-26 11:46:02 UTC) #23
motek.
@sky: all fixed as suggested. https://chromiumcodereview.appspot.com/10702097/diff/25002/chrome/browser/ui/startup/default_browser_prompt.h File chrome/browser/ui/startup/default_browser_prompt.h (right): https://chromiumcodereview.appspot.com/10702097/diff/25002/chrome/browser/ui/startup/default_browser_prompt.h#newcode16 chrome/browser/ui/startup/default_browser_prompt.h:16: bool permit_prompt_on_first_run); On 2012/07/25 ...
8 years, 4 months ago (2012-07-26 12:11:04 UTC) #24
gab
Naming issues clarified offline :). https://chromiumcodereview.appspot.com/10702097/diff/12001/chrome/browser/ui/browser_ui_prefs.cc File chrome/browser/ui/browser_ui_prefs.cc (right): https://chromiumcodereview.appspot.com/10702097/diff/12001/chrome/browser/ui/browser_ui_prefs.cc#newcode95 chrome/browser/ui/browser_ui_prefs.cc:95: prefs->RegisterBooleanPref(prefs::kSuppressSwitchToMetroModeOnSetDefault, On 2012/07/25 16:39:55, ...
8 years, 4 months ago (2012-07-26 14:52:08 UTC) #25
motek.
On 2012/07/26 14:52:08, gab wrote: > Naming issues clarified offline :). This is now reverted.
8 years, 4 months ago (2012-07-26 15:03:36 UTC) #26
gab
LGTM (very good in fact!) :)! (see one nit below) https://chromiumcodereview.appspot.com/10702097/diff/32020/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://chromiumcodereview.appspot.com/10702097/diff/32020/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode368 ...
8 years, 4 months ago (2012-07-26 17:06:18 UTC) #27
Peter Kasting
OWNERS LGTM https://chromiumcodereview.appspot.com/10702097/diff/32020/chrome/browser/ui/startup/startup_browser_creator.h File chrome/browser/ui/startup/startup_browser_creator.h (right): https://chromiumcodereview.appspot.com/10702097/diff/32020/chrome/browser/ui/startup/startup_browser_creator.h#newcode132 chrome/browser/ui/startup/startup_browser_creator.h:132: bool is_set_as_default_dialog_suppressed_; Nit: Might be better as ...
8 years, 4 months ago (2012-07-27 18:48:06 UTC) #28
motek.
https://chromiumcodereview.appspot.com/10702097/diff/32020/chrome/browser/ui/startup/startup_browser_creator.h File chrome/browser/ui/startup/startup_browser_creator.h (right): https://chromiumcodereview.appspot.com/10702097/diff/32020/chrome/browser/ui/startup/startup_browser_creator.h#newcode132 chrome/browser/ui/startup/startup_browser_creator.h:132: bool is_set_as_default_dialog_suppressed_; On 2012/07/27 18:48:06, Peter Kasting wrote: > ...
8 years, 4 months ago (2012-07-28 17:46:44 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/motek@chromium.org/10702097/28005
8 years, 4 months ago (2012-07-28 17:47:28 UTC) #30
commit-bot: I haz the power
Presubmit check for 10702097-28005 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-07-28 17:47:38 UTC) #31
Peter Kasting
Thanks for reassuring me on the sync thing :) https://chromiumcodereview.appspot.com/10702097/diff/32020/chrome/browser/ui/startup/startup_browser_creator.h File chrome/browser/ui/startup/startup_browser_creator.h (right): https://chromiumcodereview.appspot.com/10702097/diff/32020/chrome/browser/ui/startup/startup_browser_creator.h#newcode132 chrome/browser/ui/startup/startup_browser_creator.h:132: ...
8 years, 4 months ago (2012-07-28 17:50:41 UTC) #32
Ben Goodger (Google)
https://chromiumcodereview.appspot.com/10702097/diff/28005/chrome/browser/ui/startup/startup_browser_creator.h File chrome/browser/ui/startup/startup_browser_creator.h (right): https://chromiumcodereview.appspot.com/10702097/diff/28005/chrome/browser/ui/startup/startup_browser_creator.h#newcode86 chrome/browser/ui/startup/startup_browser_creator.h:86: void set_is_set_as_default_dialog_suppressed(bool new_value) { set_default_browser_dialog_suppressed the double set hurts ...
8 years, 4 months ago (2012-08-01 18:00:20 UTC) #33
sky
I'm removing myself as a reviewer since Ben is taking this one.
8 years, 4 months ago (2012-08-01 20:08:22 UTC) #34
motek.
Renamed the variable as suggested + a response / request for clarification. https://chromiumcodereview.appspot.com/10702097/diff/28005/chrome/browser/ui/startup/startup_browser_creator.h File chrome/browser/ui/startup/startup_browser_creator.h ...
8 years, 4 months ago (2012-08-01 20:44:52 UTC) #35
sky
LGTM
8 years, 4 months ago (2012-08-03 16:37:09 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/motek@chromium.org/10702097/26040
8 years, 4 months ago (2012-08-03 16:52:27 UTC) #37
commit-bot: I haz the power
8 years, 4 months ago (2012-08-03 18:47:46 UTC) #38
Change committed as 149881

Powered by Google App Engine
This is Rietveld 408576698