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

Issue 9346013: Publish app shortcuts on Mac (Closed)

Created:
8 years, 10 months ago by sail
Modified:
8 years, 10 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org
Visibility:
Public.

Description

Publish app shortcuts on Mac With this CL when installing a platform app we do the following - copy the stub App Mode Loader.app bundle to a tmp folder with the correct app name - update the info plist - copy the final app to /Applications - if we don't have write permission to /Application then we copy the app to ~/Application instead Note, for now I'm putting this feature behind a --enable-platform-apps flag. BUG=112651 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=121613

Patch Set 1 #

Patch Set 2 : fix win/gtk build #

Patch Set 3 : remove logging #

Total comments: 8

Patch Set 4 : address review comments #

Total comments: 14

Patch Set 5 : address review comments #

Total comments: 16

Patch Set 6 : address review comments #

Total comments: 10

Patch Set 7 : address review comments #

Total comments: 26

Patch Set 8 : address review comments #

Total comments: 4

Patch Set 9 : rebase #

Patch Set 10 : rebase/fix wstring warning #

Patch Set 11 : rebase #

Patch Set 12 : fix win build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+549 lines, -386 lines) Patch
M base/file_util_mac.mm View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -2 lines 0 comments Download
M base/mac/bundle_locations.mm View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M base/mac/foundation_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M base/mac/foundation_util.mm View 1 2 3 4 5 3 chunks +14 lines, -5 lines 0 comments Download
M base/mac/foundation_util_unittest.mm View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -1 line 0 comments Download
M chrome/app/app_mode_loader_mac.mm View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/app_shortcut_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 4 5 6 7 8 9 10 18 chunks +39 lines, -39 lines 0 comments Download
M chrome/browser/web_applications/web_app.h View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -2 lines 0 comments Download
M chrome/browser/web_applications/web_app.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +17 lines, -308 lines 0 comments Download
A chrome/browser/web_applications/web_app_linux.cc View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 5 6 7 1 chunk +107 lines, -0 lines 0 comments Download
A chrome/browser/web_applications/web_app_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +252 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/mac/app_mode_common.h View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -4 lines 0 comments Download
M chrome/common/mac/app_mode_common.mm View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
sail
Note, to properly test this change you need jeremy's CL that builds the App Mode ...
8 years, 10 months ago (2012-02-07 07:07:40 UTC) #1
jeremy
Can you add some unit tests for app shortcut creation? https://chromiumcodereview.appspot.com/9346013/diff/1012/chrome/browser/web_applications/web_app.cc File chrome/browser/web_applications/web_app.cc (right): https://chromiumcodereview.appspot.com/9346013/diff/1012/chrome/browser/web_applications/web_app.cc#newcode86 ...
8 years, 10 months ago (2012-02-07 08:29:27 UTC) #2
sail
> Can you add some unit tests for app shortcut creation? I'm working on unit ...
8 years, 10 months ago (2012-02-07 18:17:05 UTC) #3
sail
8 years, 10 months ago (2012-02-07 18:17:27 UTC) #4
sail
On 2012/02/07 18:17:05, sail wrote: > > Can you add some unit tests for app ...
8 years, 10 months ago (2012-02-07 22:58:56 UTC) #5
Robert Sesek
I didn't review the windows part. http://codereview.chromium.org/9346013/diff/2006/base/mac/foundation_util.h File base/mac/foundation_util.h (right): http://codereview.chromium.org/9346013/diff/2006/base/mac/foundation_util.h#newcode292 base/mac/foundation_util.h:292: NSString* FilePathToNSString(const FilePath& ...
8 years, 10 months ago (2012-02-08 00:59:38 UTC) #6
sail
http://codereview.chromium.org/9346013/diff/2006/base/mac/foundation_util.h File base/mac/foundation_util.h (right): http://codereview.chromium.org/9346013/diff/2006/base/mac/foundation_util.h#newcode292 base/mac/foundation_util.h:292: NSString* FilePathToNSString(const FilePath& path); On 2012/02/08 00:59:38, rsesek wrote: ...
8 years, 10 months ago (2012-02-08 01:47:20 UTC) #7
sail
mark: base/* OWNERS review
8 years, 10 months ago (2012-02-08 01:48:03 UTC) #8
Mark Mentovai
https://chromiumcodereview.appspot.com/9346013/diff/11001/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/9346013/diff/11001/base/mac/foundation_util.h#newcode292 base/mac/foundation_util.h:292: // Converts |path| to a NSString. State that the ...
8 years, 10 months ago (2012-02-08 04:29:04 UTC) #9
sail
https://chromiumcodereview.appspot.com/9346013/diff/11001/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/9346013/diff/11001/base/mac/foundation_util.h#newcode292 base/mac/foundation_util.h:292: // Converts |path| to a NSString. On 2012/02/08 04:29:04, ...
8 years, 10 months ago (2012-02-08 05:21:38 UTC) #10
Mark Mentovai
https://chromiumcodereview.appspot.com/9346013/diff/12004/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://chromiumcodereview.appspot.com/9346013/diff/12004/chrome/browser/extensions/extension_service.cc#newcode2639 chrome/browser/extensions/extension_service.cc:2639: // TODO(sail): For now only install shortcuts for if ...
8 years, 10 months ago (2012-02-08 05:53:26 UTC) #11
Mark Mentovai
LGTM if you’d like to check this in as-is with the minor things taken care ...
8 years, 10 months ago (2012-02-08 05:55:19 UTC) #12
sail
https://chromiumcodereview.appspot.com/9346013/diff/12004/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://chromiumcodereview.appspot.com/9346013/diff/12004/chrome/browser/extensions/extension_service.cc#newcode2639 chrome/browser/extensions/extension_service.cc:2639: // TODO(sail): For now only install shortcuts for if ...
8 years, 10 months ago (2012-02-08 06:12:51 UTC) #13
Mark Mentovai
Don’t do a move straight from the temporary directory. It may be on a different ...
8 years, 10 months ago (2012-02-08 06:27:25 UTC) #14
sail
On 2012/02/08 06:27:25, Mark Mentovai wrote: > Don’t do a move straight from the temporary ...
8 years, 10 months ago (2012-02-08 06:30:39 UTC) #15
jeremy
https://chromiumcodereview.appspot.com/9346013/diff/15005/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/9346013/diff/15005/base/mac/foundation_util.h#newcode295 base/mac/foundation_util.h:295: // Converts |str| to a FilePath. Add to comment: ...
8 years, 10 months ago (2012-02-08 09:10:45 UTC) #16
---DO-NOT-USE---rsesek1
https://chromiumcodereview.appspot.com/9346013/diff/15005/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): https://chromiumcodereview.appspot.com/9346013/diff/15005/chrome/app/app_mode_loader_mac.mm#newcode74 chrome/app/app_mode_loader_mac.mm:74: NSString* cr_bundle_path = [(NSString*)CFPreferencesCopyAppValue( You could fix these up ...
8 years, 10 months ago (2012-02-08 12:24:33 UTC) #17
sail
https://chromiumcodereview.appspot.com/9346013/diff/15005/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/9346013/diff/15005/base/mac/foundation_util.h#newcode295 base/mac/foundation_util.h:295: // Converts |str| to a FilePath. On 2012/02/08 09:10:45, ...
8 years, 10 months ago (2012-02-08 19:09:15 UTC) #18
Mihai Parparita -not on Chrome
LGTM https://chromiumcodereview.appspot.com/9346013/diff/7011/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://chromiumcodereview.appspot.com/9346013/diff/7011/chrome/browser/extensions/extension_service.cc#newcode2636 chrome/browser/extensions/extension_service.cc:2636: void ExtensionService::StartInstallApplicationShortcut( This code is moving in http://codereview.chromium.org/9310079/ ...
8 years, 10 months ago (2012-02-08 23:03:01 UTC) #19
Robert Sesek
lgtm https://chromiumcodereview.appspot.com/9346013/diff/7011/chrome/browser/web_applications/web_app.h File chrome/browser/web_applications/web_app.h (right): https://chromiumcodereview.appspot.com/9346013/diff/7011/chrome/browser/web_applications/web_app.h#newcode83 chrome/browser/web_applications/web_app.h:83: // on-disk file name . nit: extra space ...
8 years, 10 months ago (2012-02-09 02:03:32 UTC) #20
jeremy
lgtm
8 years, 10 months ago (2012-02-09 08:47:01 UTC) #21
sail
rebased and moved code to the new app_shortcut_manager class. also fixed wstring presubmit errors by ...
8 years, 10 months ago (2012-02-09 22:23:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/9346013/16003
8 years, 10 months ago (2012-02-09 22:24:26 UTC) #23
commit-bot: I haz the power
Can't apply patch for file chrome/browser/web_applications/web_app.cc. While running patch -p1 --forward --force; patching file chrome/browser/web_applications/web_app.cc ...
8 years, 10 months ago (2012-02-09 22:24:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/9346013/17005
8 years, 10 months ago (2012-02-10 08:11:06 UTC) #25
commit-bot: I haz the power
Try job failure for 9346013-17005 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 10 months ago (2012-02-10 09:15:21 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/9346013/25001
8 years, 10 months ago (2012-02-10 23:50:11 UTC) #27
commit-bot: I haz the power
8 years, 10 months ago (2012-02-11 02:04:15 UTC) #28
Change committed as 121613

Powered by Google App Engine
This is Rietveld 408576698