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

Issue 1540543002: Uniquify profile shortcut name. (Closed)

Created:
5 years ago by Michael K. (Yandex Team)
Modified:
4 years, 11 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Uniquify profile shortcut name. Profile desktop shortcut can have a name that conflicts with existing shortcuts. This commit tries to fix it by uniquifying shortcut name: by appending "(2)", "(3)" ... suffix if there is a conflict. If there are two or more profiles with identical logical names they are all able to have desktop shortcuts at the same time now. R=erg@chromium.org BUG=572593 Committed: https://crrev.com/915cc7306b0899ed017f7656dd82de8a4e4184ec Cr-Commit-Position: refs/heads/master@{#370625}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Fix review notes. #

Total comments: 10

Patch Set 3 : Fix review notes #2. #

Total comments: 6

Patch Set 4 : Fix review notes #3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -63 lines) Patch
M chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc View 1 2 3 2 chunks +144 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.h View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 3 9 chunks +188 lines, -62 lines 0 comments Download

Messages

Total messages: 44 (15 generated)
Michael K. (Yandex Team)
5 years ago (2015-12-18 09:22:48 UTC) #1
Michael K. (Yandex Team)
https://codereview.chromium.org/1540543002/diff/1/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc File chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc (right): https://codereview.chromium.org/1540543002/diff/1/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc#newcode241 chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc:241: profile_info_cache_->GetIndexOfProfileWithPath(profile_path); This was actually a bug.
5 years ago (2015-12-21 05:18:53 UTC) #2
Alexei Svitkine (slow)
Can you associate this CL with a crbug via BUG= ?
5 years ago (2015-12-22 16:30:26 UTC) #6
Michael K. (Yandex Team)
On 2015/12/22 16:30:26, asvitkine (OOO Dec24 - Jan4) wrote: > Can you associate this CL ...
5 years ago (2015-12-23 07:58:57 UTC) #7
Alexei Svitkine (slow)
Yes, please create one. Thanks for the fix, by the way! However, I likely won't ...
5 years ago (2015-12-23 16:16:02 UTC) #8
Michael K. (Yandex Team)
I created the issue at crbug.com and made an association with BUG=. PTAL
4 years, 12 months ago (2015-12-28 08:55:36 UTC) #10
anthonyvd
Hi, thanks for this CL! Just a few comments. https://codereview.chromium.org/1540543002/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/1540543002/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode591 chrome/browser/profiles/profile_shortcut_manager_win.cc:591: ...
4 years, 11 months ago (2016-01-04 16:30:18 UTC) #11
Alexei Svitkine (slow)
+gab who's also a good reviewer for this code https://codereview.chromium.org/1540543002/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/1540543002/diff/1/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode295 chrome/browser/profiles/profile_shortcut_manager_win.cc:295: ...
4 years, 11 months ago (2016-01-05 19:55:22 UTC) #13
Michael K. (Yandex Team)
PTAL. All review notes have been fixed.
4 years, 11 months ago (2016-01-11 12:30:09 UTC) #14
gab
Driving-by. Do we even want to support profiles with the same name? That just sounds ...
4 years, 11 months ago (2016-01-11 18:21:15 UTC) #15
anthonyvd
On 2016/01/11 18:21:15, gab wrote: > Driving-by. > > Do we even want to support ...
4 years, 11 months ago (2016-01-11 19:19:29 UTC) #16
chromium-reviews
Ok sgtm then, I don't feel strongly just wanted to make sure we agreed on ...
4 years, 11 months ago (2016-01-11 20:53:15 UTC) #17
chromium-reviews
PS: Please let me know if you need you need my eyes for a specific ...
4 years, 11 months ago (2016-01-11 20:54:11 UTC) #18
Michael K. (Yandex Team)
Yes, profiles' names are synced. Thus it's difficult to control uniqueness. But there is another ...
4 years, 11 months ago (2016-01-12 04:08:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1540543002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1540543002/20001
4 years, 11 months ago (2016-01-15 09:22:13 UTC) #21
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
4 years, 11 months ago (2016-01-15 09:22:19 UTC) #23
Alexei Svitkine (slow)
https://codereview.chromium.org/1540543002/diff/20001/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/1540543002/diff/20001/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode296 chrome/browser/profiles/profile_shortcut_manager_win.cc:296: // Chrome desktop shortcuts with empty command lines will ...
4 years, 11 months ago (2016-01-15 18:01:39 UTC) #25
Michael K. (Yandex Team)
PTAL https://codereview.chromium.org/1540543002/diff/20001/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/1540543002/diff/20001/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode296 chrome/browser/profiles/profile_shortcut_manager_win.cc:296: // Chrome desktop shortcuts with empty command lines ...
4 years, 11 months ago (2016-01-18 09:37:54 UTC) #26
Alexei Svitkine (slow)
lgtm % comments Thanks! https://codereview.chromium.org/1540543002/diff/40001/chrome/browser/profiles/profile_shortcut_manager_win.cc File chrome/browser/profiles/profile_shortcut_manager_win.cc (right): https://codereview.chromium.org/1540543002/diff/40001/chrome/browser/profiles/profile_shortcut_manager_win.cc#newcode364 chrome/browser/profiles/profile_shortcut_manager_win.cc:364: // that profile (there can ...
4 years, 11 months ago (2016-01-18 16:43:08 UTC) #27
Michael K. (Yandex Team)
PTAL Fixed all review notes.
4 years, 11 months ago (2016-01-19 05:40:12 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1540543002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1540543002/60001
4 years, 11 months ago (2016-01-20 04:30:15 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/137055)
4 years, 11 months ago (2016-01-20 04:40:25 UTC) #33
Michael K. (Yandex Team)
anthonyvd, PTAL. (There should be LGTM from OWNER to satisfy chromium_presubmit)
4 years, 11 months ago (2016-01-20 05:16:48 UTC) #34
anthonyvd
Sorry for the delay. lgtm
4 years, 11 months ago (2016-01-20 14:35:40 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1540543002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1540543002/60001
4 years, 11 months ago (2016-01-21 04:30:48 UTC) #37
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-21 04:52:08 UTC) #39
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/915cc7306b0899ed017f7656dd82de8a4e4184ec Cr-Commit-Position: refs/heads/master@{#370625}
4 years, 11 months ago (2016-01-21 04:53:14 UTC) #41
Nico
Looks like this broke tests on the official bots, filed https://code.google.com/p/chromium/issues/detail?id=580073
4 years, 11 months ago (2016-01-21 14:34:06 UTC) #43
Alexei Svitkine (slow)
4 years, 11 months ago (2016-01-21 15:42:40 UTC) #44
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1614943004/ by asvitkine@chromium.org.

The reason for reverting is: Reverting since it broke tests on official bots:

https://code.google.com/p/chromium/issues/detail?id=580073.

Powered by Google App Engine
This is Rietveld 408576698