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

Issue 15724019: Recreate shortcuts on app update. (Closed)

Created:
7 years, 6 months ago by jackhou1
Modified:
7 years, 6 months ago
Reviewers:
tapted, benwells
CC:
chromium-reviews, sail+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Recreate shortcuts on app update. At the moment, if an app's name or icon changes, the shim is not updated. This change updates the shim by deleting existing app shims and recreating them. Also launch the internal copy of a shim if the one in the applications directory does not exist. BUG=168080 TEST=Load an unbundled app. Create a shortcut for it. Change the app's name and reload it. The app shim's display name should be updated. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207481

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Total comments: 10

Patch Set 3 : Address comments #

Patch Set 4 : Apps folder is app_path.DirName(), not BaseName() #

Total comments: 9

Patch Set 5 : Address comments #

Patch Set 6 : Include profile dir in bundle id. #

Total comments: 20

Patch Set 7 : Address comments. Sync and rebase. #

Patch Set 8 : Sync and rebase #

Total comments: 11

Patch Set 9 : Missed a bit in the rebase. #

Patch Set 10 : Address comments #

Total comments: 16

Patch Set 11 : Address comments #

Patch Set 12 : Rebase for http://crrev.com/17202004/ #

Total comments: 2

Patch Set 13 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -121 lines) Patch
M chrome/browser/web_applications/web_app_mac.h View 1 2 3 4 5 6 7 8 9 3 chunks +35 lines, -15 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +191 lines, -88 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +75 lines, -18 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
jackhou1
7 years, 6 months ago (2013-06-11 03:44:42 UTC) #1
tapted
https://codereview.chromium.org/15724019/diff/1/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15724019/diff/1/chrome/browser/web_applications/web_app_mac.mm#newcode451 chrome/browser/web_applications/web_app_mac.mm:451: file_util::Delete(shortcut_creator.GetShortcutPath(), true); web_app_win.cc also checks whether the `Chrome Apps` ...
7 years, 6 months ago (2013-06-11 06:40:08 UTC) #2
jackhou1
Also made it only reveal in finder when creating a new shortcut, not for updates. ...
7 years, 6 months ago (2013-06-12 07:43:50 UTC) #3
tapted
Let's dress up the CL description a bit too. For non-trivial changes, they should always ...
7 years, 6 months ago (2013-06-12 08:17:52 UTC) #4
jackhou1
https://codereview.chromium.org/15724019/diff/5001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15724019/diff/5001/chrome/browser/web_applications/web_app_mac.mm#newcode453 chrome/browser/web_applications/web_app_mac.mm:453: base::FilePath app_path = shortcut_creator.GetShortcutPath(); On 2013/06/12 08:17:52, tapted wrote: ...
7 years, 6 months ago (2013-06-12 08:30:40 UTC) #5
tapted
lgtm
7 years, 6 months ago (2013-06-12 08:40:35 UTC) #6
jackhou1
benwells, could you please review for OWNERS?
7 years, 6 months ago (2013-06-12 08:53:50 UTC) #7
benwells
https://codereview.chromium.org/15724019/diff/16001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (left): https://codereview.chromium.org/15724019/diff/16001/chrome/browser/web_applications/web_app_mac.mm#oldcode451 chrome/browser/web_applications/web_app_mac.mm:451: base::FilePath bundle_path = GetAppBundleByExtensionId(info.extension_id); What is the effect of ...
7 years, 6 months ago (2013-06-13 00:09:07 UTC) #8
jackhou1
https://codereview.chromium.org/15724019/diff/16001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (left): https://codereview.chromium.org/15724019/diff/16001/chrome/browser/web_applications/web_app_mac.mm#oldcode451 chrome/browser/web_applications/web_app_mac.mm:451: base::FilePath bundle_path = GetAppBundleByExtensionId(info.extension_id); On 2013/06/13 00:09:07, benwells wrote: ...
7 years, 6 months ago (2013-06-13 01:47:41 UTC) #9
jackhou1
On 2013/06/13 01:47:41, jackhou1 wrote: > https://codereview.chromium.org/15724019/diff/16001/chrome/browser/web_applications/web_app_mac.mm > File chrome/browser/web_applications/web_app_mac.mm (left): > > https://codereview.chromium.org/15724019/diff/16001/chrome/browser/web_applications/web_app_mac.mm#oldcode451 > ...
7 years, 6 months ago (2013-06-13 01:54:53 UTC) #10
benwells
https://codereview.chromium.org/15724019/diff/16001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (left): https://codereview.chromium.org/15724019/diff/16001/chrome/browser/web_applications/web_app_mac.mm#oldcode451 chrome/browser/web_applications/web_app_mac.mm:451: base::FilePath bundle_path = GetAppBundleByExtensionId(info.extension_id); On 2013/06/13 01:47:42, jackhou1 wrote: ...
7 years, 6 months ago (2013-06-13 02:19:31 UTC) #11
jackhou1
On 2013/06/13 02:19:31, benwells wrote: > https://codereview.chromium.org/15724019/diff/16001/chrome/browser/web_applications/web_app_mac.mm > File chrome/browser/web_applications/web_app_mac.mm (left): > > https://codereview.chromium.org/15724019/diff/16001/chrome/browser/web_applications/web_app_mac.mm#oldcode451 > ...
7 years, 6 months ago (2013-06-14 01:57:05 UTC) #12
jackhou1
PTAL
7 years, 6 months ago (2013-06-17 04:44:11 UTC) #13
benwells
On 2013/06/17 04:44:11, jackhou1 wrote: > PTAL tapted, are you gonna look at this again? ...
7 years, 6 months ago (2013-06-18 05:19:01 UTC) #14
tapted
https://codereview.chromium.org/15724019/diff/24001/chrome/browser/web_applications/web_app_mac.h File chrome/browser/web_applications/web_app_mac.h (right): https://codereview.chromium.org/15724019/diff/24001/chrome/browser/web_applications/web_app_mac.h#newcode50 chrome/browser/web_applications/web_app_mac.h:50: // Returns a path to the Chrome Apps folder. ...
7 years, 6 months ago (2013-06-18 06:54:58 UTC) #15
jackhou1
https://codereview.chromium.org/15724019/diff/24001/chrome/browser/web_applications/web_app_mac.h File chrome/browser/web_applications/web_app_mac.h (right): https://codereview.chromium.org/15724019/diff/24001/chrome/browser/web_applications/web_app_mac.h#newcode50 chrome/browser/web_applications/web_app_mac.h:50: // Returns a path to the Chrome Apps folder. ...
7 years, 6 months ago (2013-06-18 08:32:40 UTC) #16
tapted
https://codereview.chromium.org/15724019/diff/42001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15724019/diff/42001/chrome/browser/web_applications/web_app_mac.mm#newcode299 chrome/browser/web_applications/web_app_mac.mm:299: } this curly needs to be unindented one space ...
7 years, 6 months ago (2013-06-19 00:58:35 UTC) #17
jackhou1
https://codereview.chromium.org/15724019/diff/42001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15724019/diff/42001/chrome/browser/web_applications/web_app_mac.mm#newcode299 chrome/browser/web_applications/web_app_mac.mm:299: } On 2013/06/19 00:58:35, tapted wrote: > this curly ...
7 years, 6 months ago (2013-06-19 02:00:19 UTC) #18
tapted
lg - mostly straightforward fixes except for the question about first deleting app_data_path_ in UpdateShortcuts() ...
7 years, 6 months ago (2013-06-19 08:29:40 UTC) #19
jackhou1
https://codereview.chromium.org/15724019/diff/45002/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15724019/diff/45002/chrome/browser/web_applications/web_app_mac.mm#newcode290 chrome/browser/web_applications/web_app_mac.mm:290: return false; On 2013/06/19 08:29:40, tapted wrote: > false ...
7 years, 6 months ago (2013-06-19 12:49:03 UTC) #20
tapted
lgtm
7 years, 6 months ago (2013-06-19 13:09:17 UTC) #21
jackhou1
benwells, PTAL
7 years, 6 months ago (2013-06-19 21:59:56 UTC) #22
benwells
lgtm https://codereview.chromium.org/15724019/diff/63001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15724019/diff/63001/chrome/browser/web_applications/web_app_mac.mm#newcode171 chrome/browser/web_applications/web_app_mac.mm:171: // The user may have deleted the copy ...
7 years, 6 months ago (2013-06-20 08:34:52 UTC) #23
jackhou1
https://codereview.chromium.org/15724019/diff/63001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15724019/diff/63001/chrome/browser/web_applications/web_app_mac.mm#newcode171 chrome/browser/web_applications/web_app_mac.mm:171: // The user may have deleted the copy in ...
7 years, 6 months ago (2013-06-20 10:57:55 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/15724019/69001
7 years, 6 months ago (2013-06-20 14:14:38 UTC) #25
commit-bot: I haz the power
7 years, 6 months ago (2013-06-20 18:14:06 UTC) #26
Message was sent while issue was closed.
Change committed as 207481

Powered by Google App Engine
This is Rietveld 408576698