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

Issue 14993013: Windows: When an app is updated and its name changes, recreate shortcuts. (Closed)

Created:
7 years, 7 months ago by Matt Giuca
Modified:
7 years, 6 months ago
CC:
chromium-reviews, tfarina, Aaron Boodman, sail+watch_chromium.org, chromium-apps-reviews_chromium.org, calamity, chrome-apps-syd-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Windows: When an app is updated and its name changes, recreate shortcuts. This searches for shortcuts in the usual locations containing the app's old name, deletes them, and creates new shortcuts in the places where there were pre-existing shortcuts. BUG=153981 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202712

Patch Set 1 #

Patch Set 2 : Base off of CL 15144005. #

Patch Set 3 : Rebase to HEAD. #

Total comments: 12

Patch Set 4 : Rebase to HEAD; Respond to reviewer feedback. #

Patch Set 5 : Rebase to HEAD. #

Patch Set 6 : On rename, delete and repin taskbar shortcuts. #

Total comments: 6

Patch Set 7 : Rebase to HEAD; Respond to reviewer feedback. #

Patch Set 8 : Rename DeleteAndRememberShortcuts to GetShortcutLocationsAndDeleteShortcuts; Minor refactor. #

Total comments: 5

Patch Set 9 : Respond to reviewer feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -96 lines) Patch
M apps/shortcut_manager.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 chunks +38 lines, -4 lines 0 comments Download
M chrome/browser/web_applications/web_app.h View 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/web_applications/web_app.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/web_applications/web_app_android.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/web_applications/web_app_linux.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/web_applications/web_app_win.cc View 1 2 3 4 5 6 7 8 4 chunks +159 lines, -82 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -1 line 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Matt Giuca
7 years, 7 months ago (2013-05-15 09:52:20 UTC) #1
benwells
Sam, can you take a first pass through this? https://codereview.chromium.org/14993013/diff/7001/chrome/common/extensions/extension.h File chrome/common/extensions/extension.h (right): https://codereview.chromium.org/14993013/diff/7001/chrome/common/extensions/extension.h#newcode680 chrome/common/extensions/extension.h:680: ...
7 years, 7 months ago (2013-05-16 04:30:59 UTC) #2
Matt Giuca
https://codereview.chromium.org/14993013/diff/7001/chrome/browser/web_applications/web_app_win.cc File chrome/browser/web_applications/web_app_win.cc (right): https://codereview.chromium.org/14993013/diff/7001/chrome/browser/web_applications/web_app_win.cc#newcode352 chrome/browser/web_applications/web_app_win.cc:352: // will not be renamed, but at least it ...
7 years, 7 months ago (2013-05-16 06:40:23 UTC) #3
koz (OOO until 15th September)
Random drive-by nits for you :-) https://codereview.chromium.org/14993013/diff/7001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/14993013/diff/7001/chrome/browser/extensions/extension_service.cc#newcode2434 chrome/browser/extensions/extension_service.cc:2434: if (existing_extension != ...
7 years, 7 months ago (2013-05-17 01:36:18 UTC) #4
Matt Giuca
https://codereview.chromium.org/14993013/diff/7001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/14993013/diff/7001/chrome/browser/extensions/extension_service.cc#newcode2434 chrome/browser/extensions/extension_service.cc:2434: if (existing_extension != NULL) { On 2013/05/17 01:36:19, koz ...
7 years, 7 months ago (2013-05-20 01:02:46 UTC) #5
Matt Giuca
OK, I now re-pin the taskbar shortcuts. This causes any pinned shortcuts getting renamed to ...
7 years, 7 months ago (2013-05-23 02:36:24 UTC) #6
Sam McNally
lgtm https://codereview.chromium.org/14993013/diff/41001/chrome/browser/extensions/extension_service_unittest.cc File chrome/browser/extensions/extension_service_unittest.cc (right): https://codereview.chromium.org/14993013/diff/41001/chrome/browser/extensions/extension_service_unittest.cc#newcode724 chrome/browser/extensions/extension_service_unittest.cc:724: const std::string& expect_old_name) { How about expected_old_name? https://codereview.chromium.org/14993013/diff/41001/chrome/browser/web_applications/web_app_win.cc ...
7 years, 7 months ago (2013-05-27 06:24:08 UTC) #7
Matt Giuca
benwells: I think it's ready for you to look at now. https://codereview.chromium.org/14993013/diff/41001/chrome/browser/extensions/extension_service_unittest.cc File chrome/browser/extensions/extension_service_unittest.cc (right): ...
7 years, 7 months ago (2013-05-28 00:41:15 UTC) #8
Matt Giuca
https://codereview.chromium.org/14993013/diff/62001/chrome/browser/web_applications/web_app_win.cc File chrome/browser/web_applications/web_app_win.cc (right): https://codereview.chromium.org/14993013/diff/62001/chrome/browser/web_applications/web_app_win.cc#newcode230 chrome/browser/web_applications/web_app_win.cc:230: void GetShortcutLocationsAndDeleteShortcuts( This was renamed at Sam's request: the ...
7 years, 7 months ago (2013-05-28 01:09:14 UTC) #9
benwells
lgtm https://codereview.chromium.org/14993013/diff/62001/chrome/browser/web_applications/web_app_win.cc File chrome/browser/web_applications/web_app_win.cc (right): https://codereview.chromium.org/14993013/diff/62001/chrome/browser/web_applications/web_app_win.cc#newcode230 chrome/browser/web_applications/web_app_win.cc:230: void GetShortcutLocationsAndDeleteShortcuts( On 2013/05/28 01:09:14, Matt Giuca wrote: ...
7 years, 7 months ago (2013-05-28 02:14:07 UTC) #10
Matt Giuca
https://codereview.chromium.org/14993013/diff/62001/chrome/browser/web_applications/web_app_win.cc File chrome/browser/web_applications/web_app_win.cc (right): https://codereview.chromium.org/14993013/diff/62001/chrome/browser/web_applications/web_app_win.cc#newcode230 chrome/browser/web_applications/web_app_win.cc:230: void GetShortcutLocationsAndDeleteShortcuts( On 2013/05/28 02:14:07, benwells wrote: > On ...
7 years, 7 months ago (2013-05-28 03:10:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/14993013/70001
7 years, 7 months ago (2013-05-28 03:10:22 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=118854
7 years, 6 months ago (2013-05-28 05:29:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/14993013/70001
7 years, 6 months ago (2013-05-28 06:30:40 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=118894
7 years, 6 months ago (2013-05-28 08:17:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/14993013/70001
7 years, 6 months ago (2013-05-28 08:19:50 UTC) #16
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=118942
7 years, 6 months ago (2013-05-28 10:14:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/14993013/70001
7 years, 6 months ago (2013-05-28 23:50:35 UTC) #18
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 00:36:58 UTC) #19
Message was sent while issue was closed.
Change committed as 202712

Powered by Google App Engine
This is Rietveld 408576698