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

Issue 12300036: Fix spurious profile shortcuts created with a system-level install. (Closed)

Created:
7 years, 10 months ago by Alexei Svitkine (slow)
Modified:
7 years, 10 months ago
Reviewers:
sail
CC:
chromium-reviews, sail+watch_chromium.org
Visibility:
Public.

Description

Fix spurious profile shortcuts created with a system-level install. This issue was caused by RenameChromeDesktopShortcutForProfile() having logic to copy a system-level shortcut to make a user-level shortcut in the case where a non-profile Chrome shortcut would need to become a profile shortcut (i.e. the first user's profile shortcut when creating a second user). This path was being triggered by the initial change of the profile avatar when the profile was created. The fix is to not to try updating profile shortcuts on name/avatar changes when we know the profile never had a shortcut created (by virtue of the shortcut name never getting stored). BUG=177047 TEST=On a system-level install, create a new profile with the "create shortcut" checkbox unchecked. A shortcut should not be created. Change the profile's name or icon. The shortcut should still not appear. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183348

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc View 1 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Alexei Svitkine (slow)
7 years, 10 months ago (2013-02-19 23:45:32 UTC) #1
Alexei Svitkine (slow)
7 years, 10 months ago (2013-02-19 23:45:55 UTC) #2
sail
https://codereview.chromium.org/12300036/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/12300036/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode623 chrome/browser/profiles/profile_shortcut_manager_win.cc:623: if (!cache.GetShortcutNameOfProfileAtIndex(profile_index).empty()) { You already have UPDATE_EXISTING_ONLY and you ...
7 years, 10 months ago (2013-02-20 00:03:52 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/12300036/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/12300036/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode623 chrome/browser/profiles/profile_shortcut_manager_win.cc:623: if (!cache.GetShortcutNameOfProfileAtIndex(profile_index).empty()) { On 2013/02/20 00:03:52, sail wrote: > ...
7 years, 10 months ago (2013-02-20 00:21:15 UTC) #4
Alexei Svitkine (slow)
Updated to stick all the logic into CreateOrUpdateShortcutsForProfileAtPath() per offline discussion.
7 years, 10 months ago (2013-02-20 00:50:40 UTC) #5
sail
LGTM!
7 years, 10 months ago (2013-02-20 00:56:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/12300036/7001
7 years, 10 months ago (2013-02-20 01:00:51 UTC) #7
Alexei Svitkine (slow)
7 years, 10 months ago (2013-02-20 01:03:06 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 manually as r183348 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698