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

Issue 10837352: Update profile desktop shortcuts (Closed)

Created:
8 years, 4 months ago by Halli
Modified:
8 years, 4 months ago
Reviewers:
gab, sail
CC:
chromium-reviews, rginda+watch_chromium.org, SteveT, rpetterson, mgaba
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Update an existing profile desktop shortcut with a new name, avatar, or both. BUG=144305, 133585 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153333

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : Fixed issues and added a unit test for update #

Total comments: 50

Patch Set 4 : #

Total comments: 15

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : Fixed stub parameters for Profile Shortcut Manager #

Total comments: 12

Patch Set 9 : #

Patch Set 10 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -142 lines) Patch
M chrome/browser/profiles/profile_manager.cc View 1 2 3 3 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager.h View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_stub.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +96 lines, -51 lines 1 comment Download
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 3 4 5 6 7 8 9 5 chunks +175 lines, -77 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Halli
8 years, 4 months ago (2012-08-21 00:14:04 UTC) #1
sail
This CL tightly couples the shortcut code with ProfileManager and the profiles UI. A better ...
8 years, 4 months ago (2012-08-21 00:25:06 UTC) #2
Halli
Changed ProfileShortcutManager to implement the ProfileInfoCacheObserver interface (ProfileShortcutManagerWin overrides observer functions).
8 years, 4 months ago (2012-08-21 21:46:22 UTC) #3
sail
http://codereview.chromium.org/10837352/diff/7001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/10837352/diff/7001/chrome/browser/profiles/profile_manager.cc#newcode273 chrome/browser/profiles/profile_manager.cc:273: GetProfileInfoCache().AddObserver(profile_shortcut_manager_.get()); Another way to do this would be to ...
8 years, 4 months ago (2012-08-21 21:59:26 UTC) #4
Halli
http://codereview.chromium.org/10837352/diff/7001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/10837352/diff/7001/chrome/browser/profiles/profile_manager.cc#newcode273 chrome/browser/profiles/profile_manager.cc:273: GetProfileInfoCache().AddObserver(profile_shortcut_manager_.get()); On 2012/08/21 21:59:26, sail wrote: > Another way ...
8 years, 4 months ago (2012-08-23 17:59:20 UTC) #5
gab
drive-by comment Cheers, Gab http://codereview.chromium.org/10837352/diff/12001/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): http://codereview.chromium.org/10837352/diff/12001/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode134 chrome/browser/profiles/profile_shortcut_manager_win.cc:134: void UpdateChromeDesktopShortcutForProfile( You do not ...
8 years, 4 months ago (2012-08-23 18:32:39 UTC) #6
sail
Looks good overall. I think the unit tests are getting a bit long and hard ...
8 years, 4 months ago (2012-08-23 18:46:43 UTC) #7
gab
Also, in general it's a bad idea to have tests that create non-temporary state (i.e. ...
8 years, 4 months ago (2012-08-23 19:01:02 UTC) #8
sail
Hm... for some reason I thought these shortcuts were being created in a temp folder. ...
8 years, 4 months ago (2012-08-23 19:02:12 UTC) #9
gab
They're not for now, but as mentioned I'm working on fixing that for shell_util which ...
8 years, 4 months ago (2012-08-23 19:24:16 UTC) #10
Halli
http://codereview.chromium.org/10837352/diff/12001/chrome/browser/profiles/profile_shortcut_manager.h File chrome/browser/profiles/profile_shortcut_manager.h (right): http://codereview.chromium.org/10837352/diff/12001/chrome/browser/profiles/profile_shortcut_manager.h#newcode19 chrome/browser/profiles/profile_shortcut_manager.h:19: // Must be called on UI thread. On 2012/08/23 ...
8 years, 4 months ago (2012-08-24 02:56:49 UTC) #11
sail
Looks pretty good so far! http://codereview.chromium.org/10837352/diff/14004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): http://codereview.chromium.org/10837352/diff/14004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode27 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:27: bool IsShortcutForProfile(const string16& profile_name) ...
8 years, 4 months ago (2012-08-24 04:32:26 UTC) #12
Halli
http://codereview.chromium.org/10837352/diff/14004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): http://codereview.chromium.org/10837352/diff/14004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode27 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:27: bool IsShortcutForProfile(const string16& profile_name) { On 2012/08/24 04:32:26, sail ...
8 years, 4 months ago (2012-08-24 17:23:56 UTC) #13
sail
http://codereview.chromium.org/10837352/diff/14004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): http://codereview.chromium.org/10837352/diff/14004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode124 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:124: FilePath dest_path = cache_->GetUserDataDir(); On 2012/08/24 17:23:56, Halli wrote: ...
8 years, 4 months ago (2012-08-24 17:32:21 UTC) #14
sail
Hey Halli, could you post the backtrace of the DCHECK() you're getting? I just realized ...
8 years, 4 months ago (2012-08-24 17:33:55 UTC) #15
Halli
http://codereview.chromium.org/10837352/diff/12002/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): http://codereview.chromium.org/10837352/diff/12002/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode29 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:29: DCHECK(PathService::Get(base::FILE_EXE, &exe_path)); On 2012/08/24 17:32:21, sail wrote: > ASSERT_TRUE ...
8 years, 4 months ago (2012-08-24 17:42:40 UTC) #16
sail
Cool. Everything looks good. The only remaining issue is the temp_dir.GetPath() vs cache_->GetUserDataDir()
8 years, 4 months ago (2012-08-24 18:01:45 UTC) #17
Halli
On 2012/08/24 18:01:45, sail wrote: > Cool. Everything looks good. The only remaining issue is ...
8 years, 4 months ago (2012-08-24 18:10:08 UTC) #18
sail
LGTM!
8 years, 4 months ago (2012-08-24 18:12:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hallielaine@chromium.org/10837352/15004
8 years, 4 months ago (2012-08-24 18:14:40 UTC) #20
gab
Key comment below. http://codereview.chromium.org/10837352/diff/15004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): http://codereview.chromium.org/10837352/diff/15004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode43 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:43: ShellUtil::VerifyChromeShortcut( I'm currently augmenting VerifyChromeShortcut with ...
8 years, 4 months ago (2012-08-24 18:37:52 UTC) #21
gab
Ok went back over everything smoothly now (sorry thought you'd wait for my lgt-to-the-m :), ...
8 years, 4 months ago (2012-08-24 19:17:32 UTC) #22
gab
straddling comments http://codereview.chromium.org/10837352/diff/19007/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): http://codereview.chromium.org/10837352/diff/19007/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode150 chrome/browser/profiles/profile_shortcut_manager_win.cc:150: string16 description(WideToUTF16(dist->GetAppDescription())); dist->GetAppDescription() does return a string16, ...
8 years, 4 months ago (2012-08-24 19:28:15 UTC) #23
Halli
http://codereview.chromium.org/10837352/diff/15004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): http://codereview.chromium.org/10837352/diff/15004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode82 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:82: dest_path = dest_path.Append(FILE_PATH_LITERAL("New Profile 1")); On 2012/08/24 19:17:32, gab ...
8 years, 4 months ago (2012-08-24 19:54:23 UTC) #24
gab
LGTM :)! http://codereview.chromium.org/10837352/diff/23010/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): http://codereview.chromium.org/10837352/diff/23010/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode78 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:78: EXPECT_EQ(ShellUtil::VERIFY_SHORTCUT_FAILURE_UNEXPECTED, Hmmm that makes me think we ...
8 years, 4 months ago (2012-08-24 20:27:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hallielaine@chromium.org/10837352/23010
8 years, 4 months ago (2012-08-24 20:29:16 UTC) #26
commit-bot: I haz the power
8 years, 4 months ago (2012-08-24 22:53:05 UTC) #27
Change committed as 153333

Powered by Google App Engine
This is Rietveld 408576698