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

Issue 11876027: ProfileShortcutManagerWin: Don't create user level shortcut when system level one exists. (Closed)

Created:
7 years, 11 months ago by Alexei Svitkine (slow)
Modified:
7 years, 11 months ago
Reviewers:
gab, sail
CC:
chromium-reviews
Visibility:
Public.

Description

Make sure profile shortcut manager does not create a user level shortcut when a system level one exists. BUG=169495 TEST=New unit tests and manual steps described in the bug. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177256

Patch Set 1 : #

Total comments: 27

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 12

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -73 lines) Patch
M chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc View 1 2 6 chunks +98 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 3 4 11 chunks +78 lines, -65 lines 0 comments Download
M chrome/installer/util/shell_util.h View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Alexei Svitkine (slow)
Gab/Sailesh, PTAL. The new tests cover all the implementation changes. I've also made the test ...
7 years, 11 months ago (2013-01-14 20:18:41 UTC) #1
sail
https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode55 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:55: fake_user_desktop_.reset( Are you moving this here to ensure that ...
7 years, 11 months ago (2013-01-14 21:45:19 UTC) #2
gab
Comments inline, do you guys have a spec of exactly what is meant to happen ...
7 years, 11 months ago (2013-01-14 21:49:30 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode55 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:55: fake_user_desktop_.reset( On 2013/01/14 21:45:19, sail wrote: > Are you ...
7 years, 11 months ago (2013-01-14 22:40:24 UTC) #4
sail
https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode266 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:266: FilePath system_shortcuts_directory_; On 2013/01/14 22:40:24, Alexei Svitkine wrote: > ...
7 years, 11 months ago (2013-01-14 22:43:55 UTC) #5
gab
+other comments pending on profile_shortcut_manager.cc https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode684 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:684: // Delete the shortcut ...
7 years, 11 months ago (2013-01-14 22:49:55 UTC) #6
gab
Should also add a test that you are able to create profile shortcuts when a ...
7 years, 11 months ago (2013-01-14 22:52:19 UTC) #7
Alexei Svitkine (slow)
(I'll update the actual CL tomorrow.) https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode279 chrome/browser/profiles/profile_shortcut_manager_win.cc:279: operation = ShellUtil::SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL; ...
7 years, 11 months ago (2013-01-14 22:57:14 UTC) #8
gab
https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode279 chrome/browser/profiles/profile_shortcut_manager_win.cc:279: operation = ShellUtil::SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL; On 2013/01/14 22:57:14, Alexei Svitkine wrote: ...
7 years, 11 months ago (2013-01-14 23:04:42 UTC) #9
Alexei Svitkine (slow)
Please have another look. In this updated CL, I've added test coverage for actually creating ...
7 years, 11 months ago (2013-01-15 22:03:02 UTC) #10
sail
LGTM! https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode189 chrome/browser/profiles/profile_shortcut_manager_win.cc:189: const string16& new_shortcut_file) { On 2013/01/15 22:03:02, Alexei ...
7 years, 11 months ago (2013-01-15 22:12:15 UTC) #11
Alexei Svitkine (slow)
https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode189 chrome/browser/profiles/profile_shortcut_manager_win.cc:189: const string16& new_shortcut_file) { On 2013/01/15 22:12:15, sail wrote: ...
7 years, 11 months ago (2013-01-15 22:18:34 UTC) #12
sail
https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/11876027/diff/6001/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode189 chrome/browser/profiles/profile_shortcut_manager_win.cc:189: const string16& new_shortcut_file) { On 2013/01/15 22:18:34, Alexei Svitkine ...
7 years, 11 months ago (2013-01-15 22:21:35 UTC) #13
gab
https://codereview.chromium.org/11876027/diff/18001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11876027/diff/18001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode415 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:415: TEST_F(ProfileShortcutManagerTest, DeleteOnlyProfileWithShortcuts) { Is this really the desired outcome ...
7 years, 11 months ago (2013-01-15 23:09:14 UTC) #14
Alexei Svitkine (slow)
https://codereview.chromium.org/11876027/diff/18001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11876027/diff/18001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode415 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:415: TEST_F(ProfileShortcutManagerTest, DeleteOnlyProfileWithShortcuts) { On 2013/01/15 23:09:14, gab wrote: > ...
7 years, 11 months ago (2013-01-15 23:34:43 UTC) #15
Alexei Svitkine (slow)
gab: PTAL https://codereview.chromium.org/11876027/diff/18001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11876027/diff/18001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode666 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:666: // Ensure system level continues to exist ...
7 years, 11 months ago (2013-01-16 16:11:44 UTC) #16
gab
Looks great, couple nits and one subtle issue below. Cheers! Gab https://codereview.chromium.org/11876027/diff/18001/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): ...
7 years, 11 months ago (2013-01-16 17:44:00 UTC) #17
gab
https://codereview.chromium.org/11876027/diff/30002/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/11876027/diff/30002/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode234 chrome/browser/profiles/profile_shortcut_manager_win.cc:234: file_util::CopyFile(possible_old_system_shortcut, new_shortcut_path); On 2013/01/16 17:44:00, gab wrote: > Actually ...
7 years, 11 months ago (2013-01-16 17:44:52 UTC) #18
Alexei Svitkine (slow)
https://codereview.chromium.org/11876027/diff/30002/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/11876027/diff/30002/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode116 chrome/browser/profiles/profile_shortcut_manager_win.cc:116: // Gets the user and system directories for desktop ...
7 years, 11 months ago (2013-01-16 17:59:56 UTC) #19
gab
LGTM, thanks! https://codereview.chromium.org/11876027/diff/30002/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/11876027/diff/30002/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode234 chrome/browser/profiles/profile_shortcut_manager_win.cc:234: file_util::CopyFile(possible_old_system_shortcut, new_shortcut_path); On 2013/01/16 17:59:56, Alexei Svitkine ...
7 years, 11 months ago (2013-01-16 18:17:32 UTC) #20
Alexei Svitkine (slow)
https://codereview.chromium.org/11876027/diff/30002/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/11876027/diff/30002/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode234 chrome/browser/profiles/profile_shortcut_manager_win.cc:234: file_util::CopyFile(possible_old_system_shortcut, new_shortcut_path); On 2013/01/16 18:17:32, gab wrote: > Ah ...
7 years, 11 months ago (2013-01-16 18:40:42 UTC) #21
gab
https://codereview.chromium.org/11876027/diff/30002/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/11876027/diff/30002/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode234 chrome/browser/profiles/profile_shortcut_manager_win.cc:234: file_util::CopyFile(possible_old_system_shortcut, new_shortcut_path); On 2013/01/16 18:40:42, Alexei Svitkine wrote: > ...
7 years, 11 months ago (2013-01-16 18:42:41 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/11876027/32002
7 years, 11 months ago (2013-01-16 18:43:55 UTC) #23
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) content_browsertests
7 years, 11 months ago (2013-01-16 21:17:42 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/11876027/32002
7 years, 11 months ago (2013-01-16 21:23:21 UTC) #25
commit-bot: I haz the power
7 years, 11 months ago (2013-01-16 23:23:33 UTC) #26
Message was sent while issue was closed.
Change committed as 177256

Powered by Google App Engine
This is Rietveld 408576698