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

Issue 8502033: Add Windows desktop shortcut for multiple profiles. (Closed)

Created:
9 years, 1 month ago by Miranda Callahan
Modified:
9 years, 1 month ago
CC:
chromium-reviews, rginda+watch_chromium.org, achuith+watch_chromium.org
Visibility:
Public.

Description

Add Windows desktop shortcut for multiple profiles. BUG=87770 TEST=new unit tests added with this CL. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111156

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : Added extra shortcut created for Default user #

Patch Set 9 : Removed an unnecessary method #

Patch Set 10 : more tweaks #

Patch Set 11 : remove wstring from profile_info_cache #

Patch Set 12 : add master_prefs bug & unittests #

Patch Set 13 : rewrite using ObserverList for fewer ifdefism #

Patch Set 14 : tweakery #

Patch Set 15 : moved more things out of other things #

Patch Set 16 : '' #

Patch Set 17 : added shell_util and browser_distr unit tests #

Patch Set 18 : change construction of First User profile launcher #

Total comments: 1

Patch Set 19 : add three additional files #

Total comments: 10

Patch Set 20 : refactor GetProfileNames and add Callback wrapper #

Total comments: 47

Patch Set 21 : '' #

Patch Set 22 : fix install.cc #

Total comments: 11

Patch Set 23 : change info DCHECKs to NOTREACHED checks #

Patch Set 24 : '' #

Patch Set 25 : Remove remnants of first test solution #

Total comments: 5

Patch Set 26 : '' #

Total comments: 16

Patch Set 27 : '' #

Patch Set 28 : fix gypi mistakes #

Patch Set 29 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+622 lines, -62 lines) Patch
M chrome/browser/chrome_browser_main_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/first_run/first_run_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 4 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 7 chunks +60 lines, -13 lines 0 comments Download
A chrome/browser/profiles/profile_info_cache_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 4 chunks +22 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/profiles/profile_shortcut_manager_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +216 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/installer/util/browser_distribution_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +13 lines, -2 lines 0 comments Download
M chrome/installer/util/shell_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 5 chunks +38 lines, -15 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 11 chunks +49 lines, -13 lines 0 comments Download
M chrome/installer/util/shell_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 8 chunks +79 lines, -7 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Robert Sesek
[Unsolicited feedback pre-review] Does this functionality really belong in the ProfileInfoCache? Could instead another class ...
9 years, 1 month ago (2011-11-16 15:49:16 UTC) #1
Miranda Callahan
On 2011/11/16 15:49:16, rsesek wrote: > [Unsolicited feedback pre-review] > > Does this functionality really ...
9 years, 1 month ago (2011-11-16 16:22:22 UTC) #2
Miranda Callahan
On 2011/11/16 16:22:22, Miranda Callahan wrote: > On 2011/11/16 15:49:16, rsesek wrote: > > [Unsolicited ...
9 years, 1 month ago (2011-11-16 23:28:29 UTC) #3
Miranda Callahan
Ready for review, although I'm still working on tests for the new ProfileInfoCache stuff. Tests ...
9 years, 1 month ago (2011-11-17 21:30:21 UTC) #4
Robert Sesek
I think you're missing a file or three. http://codereview.chromium.org/8502033/diff/35005/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8502033/diff/35005/chrome/browser/profiles/profile_info_cache.cc#newcode470 chrome/browser/profiles/profile_info_cache.cc:470: if ...
9 years, 1 month ago (2011-11-17 21:53:19 UTC) #5
Miranda Callahan
I'll say! Added. On 2011/11/17 21:53:19, rsesek wrote: > I think you're missing a file ...
9 years, 1 month ago (2011-11-17 22:04:20 UTC) #6
Miranda Callahan
On 2011/11/17 22:04:20, Miranda Callahan wrote: > I'll say! Added. > > On 2011/11/17 21:53:19, ...
9 years, 1 month ago (2011-11-18 00:15:08 UTC) #7
Miranda Callahan
On 2011/11/18 00:15:08, Miranda Callahan wrote: > On 2011/11/17 22:04:20, Miranda Callahan wrote: > > ...
9 years, 1 month ago (2011-11-18 00:17:45 UTC) #8
robertshield
http://codereview.chromium.org/8502033/diff/34007/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8502033/diff/34007/chrome/browser/profiles/profile_info_cache.cc#newcode156 chrome/browser/profiles/profile_info_cache.cc:156: cache->GetDictionary(key, &info); check that cache is non null? http://codereview.chromium.org/8502033/diff/34007/chrome/browser/profiles/profile_info_cache.cc#newcode158 ...
9 years, 1 month ago (2011-11-18 03:58:57 UTC) #9
sail
LGTM Profile info cache code looks good to me! http://codereview.chromium.org/8502033/diff/39001/chrome/browser/profiles/profile_info_cache.h File chrome/browser/profiles/profile_info_cache.h (right): http://codereview.chromium.org/8502033/diff/39001/chrome/browser/profiles/profile_info_cache.h#newcode91 chrome/browser/profiles/profile_info_cache.h:91: ...
9 years, 1 month ago (2011-11-18 07:14:24 UTC) #10
Robert Sesek
http://codereview.chromium.org/8502033/diff/39001/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8502033/diff/39001/chrome/browser/profiles/profile_info_cache.cc#newcode460 chrome/browser/profiles/profile_info_cache.cc:460: it != cache->end_keys(); nit: align with b in base ...
9 years, 1 month ago (2011-11-18 14:13:43 UTC) #11
grt (UTC plus 2)
drive-by http://codereview.chromium.org/8502033/diff/39001/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): http://codereview.chromium.org/8502033/diff/39001/chrome/browser/chrome_browser_main_win.cc#newcode150 chrome/browser/chrome_browser_main_win.cc:150: ProfileInfoCache::GetProfileNames()))) nit: braces are required for these since ...
9 years, 1 month ago (2011-11-18 16:02:15 UTC) #12
Miranda Callahan
Addressed concerns, rebased, running through the bots -- please PTAL. http://codereview.chromium.org/8502033/diff/34007/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8502033/diff/34007/chrome/browser/profiles/profile_info_cache.cc#newcode156 ...
9 years, 1 month ago (2011-11-18 19:00:36 UTC) #13
grt (UTC plus 2)
my drive-bys lgtm w/ the following changes. thanks. http://codereview.chromium.org/8502033/diff/39010/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8502033/diff/39010/chrome/browser/profiles/profile_info_cache.cc#newcode465 chrome/browser/profiles/profile_info_cache.cc:465: ++it) ...
9 years, 1 month ago (2011-11-18 20:02:54 UTC) #14
robertshield
lgtm
9 years, 1 month ago (2011-11-18 20:30:53 UTC) #15
Miranda Callahan
Addressed concerns, and added a testing method to remove the ShortcutManager from the ProfileManager for ...
9 years, 1 month ago (2011-11-18 22:41:33 UTC) #16
grt (UTC plus 2)
sticky LGTM w/ nits. thanks, miranda. http://codereview.chromium.org/8502033/diff/39010/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): http://codereview.chromium.org/8502033/diff/39010/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode180 chrome/browser/profiles/profile_shortcut_manager_win.cc:180: const string16& old_shortcut, ...
9 years, 1 month ago (2011-11-21 15:21:18 UTC) #17
Miranda Callahan
Thanks, grt! rsesek, could you take another look? http://codereview.chromium.org/8502033/diff/45002/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8502033/diff/45002/chrome/browser/profiles/profile_info_cache.cc#newcode152 chrome/browser/profiles/profile_info_cache.cc:152: if ...
9 years, 1 month ago (2011-11-21 15:40:38 UTC) #18
Robert Sesek
lgtm with nits http://codereview.chromium.org/8502033/diff/52002/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): http://codereview.chromium.org/8502033/diff/52002/chrome/browser/chrome_browser_main_win.cc#newcode150 chrome/browser/chrome_browser_main_win.cc:150: ProfileInfoCache::GetProfileNames()))) nit: braces around this body ...
9 years, 1 month ago (2011-11-21 16:00:37 UTC) #19
Miranda Callahan
Thank you! http://codereview.chromium.org/8502033/diff/52002/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): http://codereview.chromium.org/8502033/diff/52002/chrome/browser/chrome_browser_main_win.cc#newcode150 chrome/browser/chrome_browser_main_win.cc:150: ProfileInfoCache::GetProfileNames()))) On 2011/11/21 16:00:37, rsesek wrote: > ...
9 years, 1 month ago (2011-11-21 18:19:51 UTC) #20
Robert Sesek
http://codereview.chromium.org/8502033/diff/52002/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8502033/diff/52002/chrome/browser/profiles/profile_info_cache.cc#newcode167 chrome/browser/profiles/profile_info_cache.cc:167: chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED, On 2011/11/21 18:19:52, Miranda Callahan wrote: > On ...
9 years, 1 month ago (2011-11-21 18:29:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mirandac@chromium.org/8502033/63003
9 years, 1 month ago (2011-11-21 20:34:04 UTC) #22
commit-bot: I haz the power
9 years, 1 month ago (2011-11-21 20:34:15 UTC) #23
Presubmit check for 8502033-63003 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Warnings **
New code should not use wstrings.  If you are calling an API that accepts a
wstring, fix the API.
    chrome/installer/util/shell_util.cc:548
    chrome/installer/util/shell_util.cc:549
    chrome/installer/util/shell_util.cc:647
    chrome/installer/util/shell_util.cc:648
    chrome/installer/util/shell_util.cc:1001
    chrome/installer/util/shell_util.cc:1005
    chrome/installer/util/shell_util.cc:1053
    chrome/installer/util/shell_util.h:112
    chrome/installer/util/shell_util.h:113
    chrome/installer/util/shell_util.h:150
    chrome/installer/util/shell_util.h:151
    chrome/installer/util/shell_util.h:275
    chrome/installer/util/shell_util.h:293

Presubmit checks took 2.9s to calculate.

Powered by Google App Engine
This is Rietveld 408576698