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

Issue 9317002: Make the auto-launch experiment profile-aware. (Closed)

Created:
8 years, 10 months ago by Finnur
Modified:
8 years, 10 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Make the auto-launch experiment profile-aware. When writing to the registry key, append a hash of the profile directory path, so as to not clobber settings between profiles and add the --profile-directory=foo component to the directory as well. BUG=112118 TEST=Test this as you would test the autolaunch experiment normally (see original autolaunch bug), but make sure to test it with multiple profiles and side-by-side installations. Note: Only the Default profile gets to set this value at present time. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=121860

Patch Set 1 #

Patch Set 2 : Uploading again post gclient sync (no other changes) #

Total comments: 16

Patch Set 3 : '' #

Total comments: 13

Patch Set 4 : Addressing review comments #

Total comments: 5

Patch Set 5 : sync'ed and addressed gtr's comments #

Total comments: 5

Patch Set 6 : Disabled for --user-data-dir #

Patch Set 7 : Delete the Run key on profile deletion #

Total comments: 2

Patch Set 8 : Addressed Miranda's comments #

Patch Set 9 : Addressed Miranda's comments, for realz this time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -44 lines) Patch
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/resources/options2/browser_options.html View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/options2/browser_options.js View 1 2 3 4 4 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 3 4 6 chunks +21 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 5 chunks +26 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.cc View 1 2 3 4 5 6 7 4 chunks +24 lines, -9 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/installer/util/auto_launch_util.h View 1 2 3 4 3 chunks +14 lines, -5 lines 0 comments Download
M chrome/installer/util/auto_launch_util.cc View 1 2 3 4 3 chunks +64 lines, -8 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Finnur
jhawkins, can you take the browser_options file changes? grt, can you take the rest?
8 years, 10 months ago (2012-01-31 18:42:06 UTC) #1
Finnur
grt, jhawkins: ping
8 years, 10 months ago (2012-02-01 17:15:59 UTC) #2
grt (UTC plus 2)
Sorry for the delay. LG overall, but I think the hashing strategy is fragile; see ...
8 years, 10 months ago (2012-02-01 18:45:15 UTC) #3
Finnur
jhawkins: ping? grt: hold on, working on your comments.
8 years, 10 months ago (2012-02-03 14:56:58 UTC) #4
Finnur
grt: All addressed, comments below. jhawkins: Still awaiting your comments. https://chromiumcodereview.appspot.com/9317002/diff/3004/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): https://chromiumcodereview.appspot.com/9317002/diff/3004/chrome/browser/ui/browser_init.cc#newcode1505 ...
8 years, 10 months ago (2012-02-06 16:30:36 UTC) #5
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/9317002/diff/3004/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): https://chromiumcodereview.appspot.com/9317002/diff/3004/chrome/browser/ui/browser_init.cc#newcode1505 chrome/browser/ui/browser_init.cc:1505: BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, On 2012/02/06 16:30:36, Finnur wrote: > This ...
8 years, 10 months ago (2012-02-06 17:54:48 UTC) #6
James Hawkins
Need to make the proper changes to the old options/ code as well. options2 is ...
8 years, 10 months ago (2012-02-06 19:46:10 UTC) #7
Finnur
Can you be more specific, James? I am making identical changes in BrowserOptionsHandler and the ...
8 years, 10 months ago (2012-02-06 21:03:38 UTC) #8
James Hawkins
On 2012/02/06 21:03:38, Finnur wrote: > Can you be more specific, James? I am making ...
8 years, 10 months ago (2012-02-06 21:04:26 UTC) #9
James Hawkins
https://chromiumcodereview.appspot.com/9317002/diff/9001/chrome/browser/resources/options2/browser_options.html File chrome/browser/resources/options2/browser_options.html (right): https://chromiumcodereview.appspot.com/9317002/diff/9001/chrome/browser/resources/options2/browser_options.html#newcode253 chrome/browser/resources/options2/browser_options.html:253: <div id="autoLaunchOption" class="checkbox" hidden> nit: auto-launch-option I have a ...
8 years, 10 months ago (2012-02-06 21:08:01 UTC) #10
Finnur
All comments addressed, please take another look. https://chromiumcodereview.appspot.com/9317002/diff/9001/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): https://chromiumcodereview.appspot.com/9317002/diff/9001/chrome/browser/ui/browser_init.cc#newcode1496 chrome/browser/ui/browser_init.cc:1496: return false; ...
8 years, 10 months ago (2012-02-07 12:29:01 UTC) #11
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/9317002/diff/19001/chrome/installer/util/auto_launch_util.cc File chrome/installer/util/auto_launch_util.cc (right): https://chromiumcodereview.appspot.com/9317002/diff/19001/chrome/installer/util/auto_launch_util.cc#newcode39 chrome/installer/util/auto_launch_util.cc:39: BrowserDistribution* distribution = BrowserDistribution::GetDistribution(); Apologies for not catching this ...
8 years, 10 months ago (2012-02-07 16:13:10 UTC) #12
Finnur
https://chromiumcodereview.appspot.com/9317002/diff/19001/chrome/installer/util/auto_launch_util.cc File chrome/installer/util/auto_launch_util.cc (right): https://chromiumcodereview.appspot.com/9317002/diff/19001/chrome/installer/util/auto_launch_util.cc#newcode39 chrome/installer/util/auto_launch_util.cc:39: BrowserDistribution* distribution = BrowserDistribution::GetDistribution(); Good point. Fixed. https://chromiumcodereview.appspot.com/9317002/diff/19001/chrome/installer/util/auto_launch_util.cc#newcode88 chrome/installer/util/auto_launch_util.cc:88: ...
8 years, 10 months ago (2012-02-07 16:26:05 UTC) #13
grt (UTC plus 2)
Sorry to make more work for you... https://chromiumcodereview.appspot.com/9317002/diff/19001/chrome/installer/util/auto_launch_util.cc File chrome/installer/util/auto_launch_util.cc (right): https://chromiumcodereview.appspot.com/9317002/diff/19001/chrome/installer/util/auto_launch_util.cc#newcode88 chrome/installer/util/auto_launch_util.cc:88: string16 cmd_line ...
8 years, 10 months ago (2012-02-07 16:36:03 UTC) #14
Finnur
https://chromiumcodereview.appspot.com/9317002/diff/23003/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/9317002/diff/23003/chrome/installer/setup/uninstall.cc#newcode741 chrome/installer/setup/uninstall.cc:741: if (auto_launch_util::WillLaunchAtLogin( Hmm... It will not, but I'd rather ...
8 years, 10 months ago (2012-02-07 18:20:30 UTC) #15
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/9317002/diff/23003/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/9317002/diff/23003/chrome/installer/setup/uninstall.cc#newcode741 chrome/installer/setup/uninstall.cc:741: if (auto_launch_util::WillLaunchAtLogin( On 2012/02/07 18:20:30, Finnur wrote: > Hmm... ...
8 years, 10 months ago (2012-02-07 18:39:19 UTC) #16
Finnur
jhawkins: Can a brother get an LGTM? :) grt: I tried going down this path ...
8 years, 10 months ago (2012-02-09 16:29:22 UTC) #17
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/9317002/diff/32001/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): https://chromiumcodereview.appspot.com/9317002/diff/32001/chrome/browser/profiles/profile_info_cache.cc#newcode259 chrome/browser/profiles/profile_info_cache.cc:259: base::Bind(&DeleteAutoLaunchValueForProfile, profile_path)); shouldn't this be more like the ProfileShortcutManager ...
8 years, 10 months ago (2012-02-09 16:43:50 UTC) #18
Finnur
We don't have a dedicated class to handle it and creating one feels wasteful. Are ...
8 years, 10 months ago (2012-02-09 17:35:28 UTC) #19
grt (UTC plus 2)
I guess it would be a lot of code to add an observer for profiles ...
8 years, 10 months ago (2012-02-09 18:04:05 UTC) #20
James Hawkins
LGTM with nit. https://chromiumcodereview.appspot.com/9317002/diff/32001/chrome/browser/ui/webui/options/browser_options_handler.cc File chrome/browser/ui/webui/options/browser_options_handler.cc (right): https://chromiumcodereview.appspot.com/9317002/diff/32001/chrome/browser/ui/webui/options/browser_options_handler.cc#newcode195 chrome/browser/ui/webui/options/browser_options_handler.cc:195: // We don't support this for ...
8 years, 10 months ago (2012-02-09 18:32:53 UTC) #21
Finnur
grt: I've asked Miranda for a second opinion on the profile_info_cache.cc changes. Does the rest ...
8 years, 10 months ago (2012-02-10 14:04:56 UTC) #22
Miranda Callahan
LGTM, thanks. On 2012/02/10 14:04:56, Finnur wrote: > grt: I've asked Miranda for a second ...
8 years, 10 months ago (2012-02-10 14:56:29 UTC) #23
grt (UTC plus 2)
Lgtm
8 years, 10 months ago (2012-02-10 16:30:05 UTC) #24
Finnur
Scott, can you give an OWNERS green light for the changes in browser_init.cc?
8 years, 10 months ago (2012-02-13 10:27:59 UTC) #25
sky
8 years, 10 months ago (2012-02-13 16:26:18 UTC) #26
LGTM

Powered by Google App Engine
This is Rietveld 408576698