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

Issue 9253016: Add a startup check to create profile shortcuts for legacy Chrome profiles. (Closed)

Created:
8 years, 11 months ago by SteveT
Modified:
8 years, 11 months ago
Reviewers:
sail
CC:
chromium-reviews, rginda+watch_chromium.org, achuith+watch_chromium.org, dhollowa
Visibility:
Public.

Description

Add a startup check to create profile shortcuts for legacy Chrome profiles. We do this by adding a per-profile pref that tracks whether or not a shortcut has been created for it. We check that flag at Profile startup and create a new shortcut if needed (while setting the flag to avoid creating future shortcuts). BUG=109447 TEST=Start Chrome in v16 or v17 and create a new profile. Update Chrome to the latest version (including this patch) and ensure that starting a window with one of the two original profiles creates a desktop shortcut with that Profile's data. Ensure that if we then delete the shortcut for the profile, but start a new window for the profile, another shortcut is not created. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118316

Patch Set 1 #

Total comments: 10

Patch Set 2 : Added missing profile_manager.cc #

Patch Set 3 : Added missing ifdefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -2 lines) Patch
M chrome/browser/profiles/profile_impl.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
SteveT
PTAL. I made the changes roughly as we had discussed - moved the Profile Shortcut ...
8 years, 11 months ago (2012-01-18 19:26:02 UTC) #1
sail
https://chromiumcodereview.appspot.com/9253016/diff/1/chrome/browser/profiles/profile_manager.h File chrome/browser/profiles/profile_manager.h (right): https://chromiumcodereview.appspot.com/9253016/diff/1/chrome/browser/profiles/profile_manager.h#newcode255 chrome/browser/profiles/profile_manager.h:255: #if defined(OS_WIN) instead of using #ifdef here you could ...
8 years, 11 months ago (2012-01-18 19:32:51 UTC) #2
SteveT
Responses inline, and no changes yet. https://chromiumcodereview.appspot.com/9253016/diff/1/chrome/browser/profiles/profile_manager.h File chrome/browser/profiles/profile_manager.h (right): https://chromiumcodereview.appspot.com/9253016/diff/1/chrome/browser/profiles/profile_manager.h#newcode255 chrome/browser/profiles/profile_manager.h:255: #if defined(OS_WIN) I've ...
8 years, 11 months ago (2012-01-18 19:46:01 UTC) #3
sail
https://chromiumcodereview.appspot.com/9253016/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://chromiumcodereview.appspot.com/9253016/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode216 chrome/browser/profiles/profile_shortcut_manager_win.cc:216: void ProfileShortcutManagerWin::AddProfileShortcut( On 2012/01/18 19:46:01, SteveT wrote: > This ...
8 years, 11 months ago (2012-01-18 19:53:35 UTC) #4
SteveT
Forgot profile_manager.cc, which is now uploaded. Sorry about that! This should make a lot more ...
8 years, 11 months ago (2012-01-18 20:17:40 UTC) #5
sail
LGTM! Is there anyway to add a unit test for this behavior?
8 years, 11 months ago (2012-01-18 20:20:05 UTC) #6
SteveT
Trying to figure that out while I work out the manual testing... I think that ...
8 years, 11 months ago (2012-01-18 20:23:01 UTC) #7
sail
On 2012/01/18 20:23:01, SteveT wrote: > Trying to figure that out while I work out ...
8 years, 11 months ago (2012-01-18 20:26:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/9253016/9
8 years, 11 months ago (2012-01-19 15:23:09 UTC) #9
commit-bot: I haz the power
8 years, 11 months ago (2012-01-19 17:23:13 UTC) #10
Change committed as 118316

Powered by Google App Engine
This is Rietveld 408576698