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

Issue 11299160: Find shortcuts that don't have a profile command line set when creating 2nd profile. (Closed)

Created:
8 years, 1 month ago by Alexei Svitkine (slow)
Modified:
8 years ago
Reviewers:
gab, sail
CC:
chromium-reviews
Visibility:
Public.

Description

Find shortcuts that don't have a profile command line set when creating 2nd profile. This addresses the scenario when a new Chrome install has a default shortcut with no profile command-line set and the user creates a 2nd profile. With this change, the existing shortcut will be correctly replaced with the two shortcuts, one for each profile. BUG=108203 TEST=New unit tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170200

Patch Set 1 : #

Total comments: 16

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Total comments: 13

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -168 lines) Patch
M chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc View 1 2 3 7 chunks +195 lines, -119 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.h View 1 2 3 2 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 3 15 chunks +74 lines, -47 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Alexei Svitkine (slow)
8 years ago (2012-11-26 20:32:50 UTC) #1
sail
https://codereview.chromium.org/11299160/diff/11004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11299160/diff/11004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode112 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:112: profile_shortcut_manager_->CreateProfileShortcut(second_dest_path_); I know this was there previously but is ...
8 years ago (2012-11-26 21:27:16 UTC) #2
Alexei Svitkine (slow)
Won't have a chance to address some of the other comments till later, but here's ...
8 years ago (2012-11-27 14:49:26 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/11299160/diff/11004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11299160/diff/11004/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode373 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:373: EXPECT_TRUE(file_util::PathExists(default_shortcut_path)); On 2012/11/27 14:49:26, Alexei Svitkine wrote: > On ...
8 years ago (2012-11-27 14:53:58 UTC) #4
sail
I'm not too worried about being able to find the exact problem from test failures. ...
8 years ago (2012-11-27 17:26:23 UTC) #5
Alexei Svitkine (slow)
Thanks for your comments. I've made most of the changes you suggested, though there's a ...
8 years ago (2012-11-27 22:31:26 UTC) #6
sail
Looks really good! https://codereview.chromium.org/11299160/diff/5003/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11299160/diff/5003/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode99 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:99: ASSERT_FALSE(ProfileShortcutExistsAtDefaultPath(profile_1_name_)); did you want to add ...
8 years ago (2012-11-28 05:12:31 UTC) #7
Alexei Svitkine (slow)
PTAL. I've addressed your comments and made the shortcut validation function check command-line args, which ...
8 years ago (2012-11-28 21:27:12 UTC) #8
gab
Looks good, some comments below on general shortcut things. https://codereview.chromium.org/11299160/diff/4003/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11299160/diff/4003/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode41 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:41: ...
8 years ago (2012-11-28 22:00:57 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/11299160/diff/4003/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/11299160/diff/4003/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode41 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:41: FilePath CreateProfileDirectory(const string16& profile_name) { On 2012/11/28 22:00:58, gab ...
8 years ago (2012-11-28 22:25:55 UTC) #10
gab
lgtm for shortcut-login (please let sail lgtm the overall code), better to keep this to ...
8 years ago (2012-11-28 22:31:37 UTC) #11
gab
On 2012/11/28 22:31:37, gab wrote: > lgtm for shortcut-login (please let sail lgtm the overall ...
8 years ago (2012-11-28 22:31:59 UTC) #12
sail
LGTM!
8 years ago (2012-11-28 22:39:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/11299160/5
8 years ago (2012-11-28 23:23:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/11299160/5
8 years ago (2012-11-29 15:40:54 UTC) #15
commit-bot: I haz the power
8 years ago (2012-11-29 16:34:27 UTC) #16
Message was sent while issue was closed.
Change committed as 170200

Powered by Google App Engine
This is Rietveld 408576698