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

Issue 8894005: Ensure that use of GAIA names are considered when handling desktop shortcut changes. (Closed)

Created:
9 years ago by SteveT
Modified:
9 years ago
Reviewers:
sail
CC:
chromium-reviews, jwd
Visibility:
Public.

Description

Ensure that use of GAIA names are considered when handling desktop shortcut changes. Beefed up ProfileInfoCacheTest with a verifier class to ensure this. BUG=106261 TEST=On Windows, create a new user and sign him into sync with a GAIA account. Ensure that the desktop shortcut changes with the synced GAIA name. Ensure that changing the profile's name or avatar updates the shortcut. Ensure that deleting the profile deletes the shortcut. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114282

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : cleaned up code in DeleteProfileFromCache #

Patch Set 4 : '' #

Patch Set 5 : Moved Observer method defs to cc #

Patch Set 6 : moved ctor and dtor defs to cc #

Patch Set 7 : Fixed issue with shortcut changing ordering in GAIAInfoUpdateService #

Total comments: 2

Patch Set 8 : beefed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -15 lines) Patch
M chrome/browser/profiles/gaia_info_update_service.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 5 chunks +17 lines, -14 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache_unittest.h View 1 2 3 4 5 6 3 chunks +33 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache_unittest.cc View 1 2 3 4 5 6 2 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
SteveT
Kind of a work in progress still, but here is the patch so far. PTAL. ...
9 years ago (2011-12-09 16:54:00 UTC) #1
sail
http://codereview.chromium.org/8894005/diff/1/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8894005/diff/1/chrome/browser/profiles/profile_info_cache.cc#newcode240 chrome/browser/profiles/profile_info_cache.cc:240: if (IsUsingGAIANameOfProfileAtIndex(index)) In all these places you should be ...
9 years ago (2011-12-09 17:47:59 UTC) #2
SteveT
Thanks! Back to you. http://codereview.chromium.org/8894005/diff/1/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8894005/diff/1/chrome/browser/profiles/profile_info_cache.cc#newcode240 chrome/browser/profiles/profile_info_cache.cc:240: if (IsUsingGAIANameOfProfileAtIndex(index)) Just what I ...
9 years ago (2011-12-09 18:20:20 UTC) #3
sail
hey steve, can chance we could add a quick 3 link unit test for this? ...
9 years ago (2011-12-09 18:24:22 UTC) #4
SteveT
Hey Sail - addressed your comments. I'd be more than happy to write some unit ...
9 years ago (2011-12-09 18:37:56 UTC) #5
sail
> I'd be more than happy to write some unit tests for this, but what ...
9 years ago (2011-12-09 18:41:28 UTC) #6
SteveT
I see your request for a 3 line unit test and I'll raise you a ...
9 years ago (2011-12-09 19:50:10 UTC) #7
SteveT
Oh, let me know if you prefer the definition of the helper class in the ...
9 years ago (2011-12-09 19:58:31 UTC) #8
sail
thanks for adding the test! LGTM!
9 years ago (2011-12-09 20:48:46 UTC) #9
SteveT
Cool, thanks. Again, I need to work out that bug with the glitchy .lnk file ...
9 years ago (2011-12-09 21:36:32 UTC) #10
SteveT
Sail - PTAL at gaia_info_update_service.cc. I figured out the issue with the corrupted shortcut. Turns ...
9 years ago (2011-12-13 16:19:06 UTC) #11
sail
lgtm http://codereview.chromium.org/8894005/diff/6003/chrome/browser/profiles/gaia_info_update_service.cc File chrome/browser/profiles/gaia_info_update_service.cc (right): http://codereview.chromium.org/8894005/diff/6003/chrome/browser/profiles/gaia_info_update_service.cc#newcode134 chrome/browser/profiles/gaia_info_update_service.cc:134: // Order matters here like in ProfileShortcutManagerWin::OnProfileAdded. We ...
9 years ago (2011-12-13 19:36:18 UTC) #12
SteveT
Thanks. Committing once tests and stuff look good. ONWARDS! http://codereview.chromium.org/8894005/diff/6003/chrome/browser/profiles/gaia_info_update_service.cc File chrome/browser/profiles/gaia_info_update_service.cc (right): http://codereview.chromium.org/8894005/diff/6003/chrome/browser/profiles/gaia_info_update_service.cc#newcode134 chrome/browser/profiles/gaia_info_update_service.cc:134: ...
9 years ago (2011-12-13 20:20:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/8894005/25001
9 years ago (2011-12-13 20:25:57 UTC) #14
commit-bot: I haz the power
9 years ago (2011-12-13 22:07:17 UTC) #15
Change committed as 114282

Powered by Google App Engine
This is Rietveld 408576698