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

Issue 8729009: Implement an AutoLaunch experiment for Chrome for certain brand codes. (Closed)

Created:
9 years ago by Finnur
Modified:
9 years ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, arv (Not doing code reviews), mihaip+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Implement an AutoLaunch experiment for Chrome for certain brand codes. This is for Windows only. BUG=95971 TEST=This requires a special branded build to test (and master_preferences set to have auto_launch_chrome: true or specify mini_installer param --auto-launch-chrome), but after installing it you should see an item under the Wrench \ Options \ Basics that lets you configure Chrome to not auto-launch. If you instead, log out and log in again, Chrome should start with an infobar saying that it was auto-launched. The infobar should stay for a max of 5 launches and then not appear again. Pressing "Cut it out!" on the infobar should turn off this feature. If you just want to test the infobar, launch chrome with --auto-launch-at-startup. Also, uninstall and make sure Chrome is not auto-launched (a Windows error about Chrome not being found should not be shown). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114621

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 18

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 22

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 28

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 10

Patch Set 10 : '' #

Total comments: 5

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+578 lines, -12 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -0 lines 0 comments Download
A chrome/browser/auto_launch_trial.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/auto_launch_trial.cc View 1 2 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 5 6 7 8 9 6 chunks +24 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_init.h View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 3 4 5 6 7 8 9 6 chunks +159 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +73 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_installer_util.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -1 line 0 comments Download
A chrome/installer/util/auto_launch_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/installer/util/auto_launch_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +64 lines, -0 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/installer/util/master_preferences.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/master_preferences.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/installer/util/util_constants.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Finnur
This is work in progress (needs some installer changes, hence looping in grt).
9 years ago (2011-11-29 18:14:41 UTC) #1
grt (UTC plus 2)
LG. A handful of early comments mostly related to the installer stuff. http://codereview.chromium.org/8729009/diff/3004/chrome/browser/auto_launch_trial.cc File chrome/browser/auto_launch_trial.cc ...
9 years ago (2011-11-29 18:55:45 UTC) #2
Finnur
I'm splitting this review in three between rogerta, stuartmorgan and grt, based on areas of ...
9 years ago (2011-11-29 23:48:30 UTC) #3
Finnur
grt: Two more for you (that I left out in the last CL): base/win/win_util.h base/win/win_util.cc
9 years ago (2011-11-30 01:21:50 UTC) #4
Finnur
ping? On Tue, Nov 29, 2011 at 17:21, <finnur@chromium.org> wrote: > grt: Two more for ...
9 years ago (2011-12-01 00:15:30 UTC) #5
grt (UTC plus 2)
Apologies for the delay. Did you consider putting a shortcut in the user's Start Menu\Programs\Startup ...
9 years ago (2011-12-01 04:45:02 UTC) #6
stuartmorgan
http://codereview.chromium.org/8729009/diff/17001/chrome/browser/resources/options/browser_options.html File chrome/browser/resources/options/browser_options.html (right): http://codereview.chromium.org/8729009/diff/17001/chrome/browser/resources/options/browser_options.html#newcode124 chrome/browser/resources/options/browser_options.html:124: <span id="autoLaunchOption" hidden> This should almost certainly be a ...
9 years ago (2011-12-01 10:11:44 UTC) #7
Finnur
rogerta: ping stuartmorgan, grt: PTAL grt: Your idea on adding a shortcut instead of the ...
9 years ago (2011-12-02 23:47:58 UTC) #8
grt (UTC plus 2)
lookin' good. if it makes it from experiment to feature i'll push for it to ...
9 years ago (2011-12-03 04:43:38 UTC) #9
stuartmorgan
Options LGTM
9 years ago (2011-12-05 14:55:47 UTC) #10
Roger Tawa OOO till Jul 10th
Sorry for the delay Finnur, I had lost track of this review. Some comments/questions below. ...
9 years ago (2011-12-07 15:38:37 UTC) #11
grt (UTC plus 2)
http://codereview.chromium.org/8729009/diff/33002/chrome/installer/util/util_constants.h File chrome/installer/util/util_constants.h (right): http://codereview.chromium.org/8729009/diff/33002/chrome/installer/util/util_constants.h#newcode116 chrome/installer/util/util_constants.h:116: NUM_STAGES // 16: The number of stages. On 2011/12/07 ...
9 years ago (2011-12-07 15:56:34 UTC) #12
Roger Tawa OOO till Jul 10th
http://codereview.chromium.org/8729009/diff/33002/chrome/installer/util/util_constants.h File chrome/installer/util/util_constants.h (right): http://codereview.chromium.org/8729009/diff/33002/chrome/installer/util/util_constants.h#newcode122 chrome/installer/util/util_constants.h:122: never_ever_ever_change_InstallerStage_values_bang); On 2011/12/07 15:56:35, grt wrote: > On 2011/12/07 ...
9 years ago (2011-12-07 16:17:16 UTC) #13
Finnur
PTAL http://codereview.chromium.org/8729009/diff/33002/chrome/browser/auto_launch_trial.cc File chrome/browser/auto_launch_trial.cc (right): http://codereview.chromium.org/8729009/diff/33002/chrome/browser/auto_launch_trial.cc#newcode20 chrome/browser/auto_launch_trial.cc:20: } On 2011/12/07 15:38:37, Roger Tawa wrote: > ...
9 years ago (2011-12-13 15:53:24 UTC) #14
Roger Tawa OOO till Jul 10th
lgtm, with one comment below. http://codereview.chromium.org/8729009/diff/46001/chrome/browser/auto_launch_trial.cc File chrome/browser/auto_launch_trial.cc (right): http://codereview.chromium.org/8729009/diff/46001/chrome/browser/auto_launch_trial.cc#newcode42 chrome/browser/auto_launch_trial.cc:42: == kAutoLaunchTrialAutoLaunchGroup; After looking ...
9 years ago (2011-12-13 17:05:19 UTC) #15
grt (UTC plus 2)
http://codereview.chromium.org/8729009/diff/46001/chrome/browser/ui/webui/options/browser_options_handler.cc File chrome/browser/ui/webui/options/browser_options_handler.cc (right): http://codereview.chromium.org/8729009/diff/46001/chrome/browser/ui/webui/options/browser_options_handler.cc#newcode175 chrome/browser/ui/webui/options/browser_options_handler.cc:175: weak_ptr_factory_for_ui_.DetachFromThread(); i'm not familiar enough with WeakPtr machinery to ...
9 years ago (2011-12-13 17:08:55 UTC) #16
Finnur
Joi, can you take a look at the weakptr changes in browser_options_handler.cc/.h?
9 years ago (2011-12-14 16:34:04 UTC) #17
Jói
browser_options_handler.(cc|h) LGTM with some nits. I would suggest doing something like [ gcl try --bot=linux_valgrind,linux_tsan,linux_asan ...
9 years ago (2011-12-14 16:44:13 UTC) #18
grt (UTC plus 2)
9 years ago (2011-12-14 16:57:53 UTC) #19
I like the symmetry in the auto_launch_util methods.  Installer changes LGTM. 
Good luck!

Powered by Google App Engine
This is Rietveld 408576698