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

Issue 9416012: Mac: Generate App Mode Loader bundle + cleanup (Closed)

Created:
8 years, 10 months ago by jeremy
Modified:
8 years, 9 months ago
Reviewers:
Mark Mentovai, Nico, sail
CC:
chromium-reviews, Nico
Visibility:
Public.

Description

Mac: Generate App Mode Loader bundle + cleanup * Revised the .gyp files so that the app mode loader is built as a bundle "template". * Add new data to loader Info.plist and fill it in. * Improve unit tests and disable them for now (fix will be in a followup CL). * Various small cleanup tasks all over Mac app mode loader code. BUG=112651 TEST=Covered by existing tests (which when enabled, will test this). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124151

Patch Set 1 #

Total comments: 17

Patch Set 2 : Fix review comments #

Patch Set 3 : Tweak #

Patch Set 4 : Tweak #

Total comments: 7

Patch Set 5 : Fix review comments #

Patch Set 6 : Fix gyp dependencies #

Patch Set 7 : Fix gyp dependencies #

Total comments: 1

Patch Set 8 : Fix review comments #

Total comments: 17

Patch Set 9 : Fix review comments #

Total comments: 3

Patch Set 10 : Patch for landing #

Patch Set 11 : Patch for landing1 #

Patch Set 12 : Rebased against trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -34 lines) Patch
M chrome/app/app_mode-Info.plist View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/app/app_mode_loader_mac.mm View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/app/chrome_main_app_mode_mac.mm View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac.h View 1 2 3 4 5 6 7 8 9 3 chunks +24 lines, -3 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 5 6 7 8 9 8 chunks +30 lines, -7 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 4 chunks +17 lines, -7 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 3 chunks +34 lines, -4 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/mac/app_mode_common.h View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/common/mac/app_mode_common.mm View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
jeremy
Mark: Do the gyp changes look sane to you? Sail: Everything else. https://chromiumcodereview.appspot.com/9416012/diff/1/chrome/app/app_mode-Info.plist File chrome/app/app_mode-Info.plist ...
8 years, 10 months ago (2012-02-16 12:55:34 UTC) #1
Nico
https://chromiumcodereview.appspot.com/9416012/diff/1/chrome/app/app_mode-Info.plist File chrome/app/app_mode-Info.plist (right): https://chromiumcodereview.appspot.com/9416012/diff/1/chrome/app/app_mode-Info.plist#newcode10 chrome/app/app_mode-Info.plist:10: <string>????</string> On 2012/02/16 12:55:34, jeremy wrote: > If we ...
8 years, 10 months ago (2012-02-16 15:57:23 UTC) #2
Mark Mentovai
Nico beat me to the punch with this. On Feb 16, 2012 10:57 AM, <thakis@chromium.org> ...
8 years, 10 months ago (2012-02-16 16:24:46 UTC) #3
sail
http://codereview.chromium.org/9416012/diff/1/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): http://codereview.chromium.org/9416012/diff/1/chrome/app/app_mode_loader_mac.mm#newcode42 chrome/app/app_mode_loader_mac.mm:42: NSString* cr_bundle_id = [app_bundle this should probably use base::mac::ObjCCast<NSString> ...
8 years, 10 months ago (2012-02-17 16:42:09 UTC) #4
jeremy
All done, ready for another look. http://codereview.chromium.org/9416012/diff/1/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): http://codereview.chromium.org/9416012/diff/1/chrome/app/app_mode_loader_mac.mm#newcode42 chrome/app/app_mode_loader_mac.mm:42: NSString* cr_bundle_id = ...
8 years, 10 months ago (2012-02-19 14:36:41 UTC) #5
sail
some small nits but otherwise LGTM! http://codereview.chromium.org/9416012/diff/7004/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): http://codereview.chromium.org/9416012/diff/7004/chrome/browser/web_applications/web_app_mac.mm#newcode93 chrome/browser/web_applications/web_app_mac.mm:93: [dict setObject:GetBundleIdentifier(base::mac::ObjCCast<NSDictionary>(dict)) you ...
8 years, 10 months ago (2012-02-19 21:08:54 UTC) #6
jeremy
Mark: I still need an owner LGTM, thanks! http://codereview.chromium.org/9416012/diff/7004/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): http://codereview.chromium.org/9416012/diff/7004/chrome/browser/web_applications/web_app_mac.mm#newcode93 chrome/browser/web_applications/web_app_mac.mm:93: [dict ...
8 years, 10 months ago (2012-02-20 05:41:00 UTC) #7
sail
http://codereview.chromium.org/9416012/diff/13002/chrome/browser/web_applications/web_app_mac.h File chrome/browser/web_applications/web_app_mac.h (right): http://codereview.chromium.org/9416012/diff/13002/chrome/browser/web_applications/web_app_mac.h#newcode24 chrome/browser/web_applications/web_app_mac.h:24: explicit WebAppShortcutCreator( This doesn't need to be explicit anymore.
8 years, 10 months ago (2012-02-20 21:17:49 UTC) #8
Mark Mentovai
This mostly looks good. I’ll want to look at a sample .app that this creates. ...
8 years, 10 months ago (2012-02-22 16:43:22 UTC) #9
Mark Mentovai
https://chromiumcodereview.appspot.com/9416012/diff/13003/chrome/app/app_mode-Info.plist File chrome/app/app_mode-Info.plist (right): https://chromiumcodereview.appspot.com/9416012/diff/13003/chrome/app/app_mode-Info.plist#newcode16 chrome/app/app_mode-Info.plist:16: <string>${APP_MODE_APP_BUNDLE_ID}</string> In the sample that you sent me, I ...
8 years, 10 months ago (2012-02-22 18:56:12 UTC) #10
Mark Mentovai
Even stripped down, the app_mode_loader binary is 250kB. That’s larger than I was expecting. Is ...
8 years, 10 months ago (2012-02-22 18:57:02 UTC) #11
sail
On 2012/02/22 18:57:02, Mark Mentovai wrote: > Even stripped down, the app_mode_loader binary is 250kB. ...
8 years, 10 months ago (2012-02-22 19:02:04 UTC) #12
sail
On 2012/02/22 18:57:02, Mark Mentovai wrote: > Even stripped down, the app_mode_loader binary is 250kB. ...
8 years, 10 months ago (2012-02-22 19:02:05 UTC) #13
jeremy
Fixed, ready for another look https://chromiumcodereview.appspot.com/9416012/diff/13003/chrome/app/app_mode-Info.plist File chrome/app/app_mode-Info.plist (right): https://chromiumcodereview.appspot.com/9416012/diff/13003/chrome/app/app_mode-Info.plist#newcode9 chrome/app/app_mode-Info.plist:9: <key>CFBundleSignature</key> If I don't ...
8 years, 10 months ago (2012-02-23 14:21:13 UTC) #14
Mark Mentovai
LGTM with two easy changes now plus one change to be made in the future. ...
8 years, 10 months ago (2012-02-23 17:46:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/9416012/24001
8 years, 9 months ago (2012-02-28 12:21:22 UTC) #16
commit-bot: I haz the power
Try job failure for 9416012-24001 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 9 months ago (2012-02-28 14:04:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/9416012/27002
8 years, 9 months ago (2012-02-28 14:31:16 UTC) #18
commit-bot: I haz the power
Try job failure for 9416012-27002 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-02-28 17:09:43 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/9416012/37001
8 years, 9 months ago (2012-02-29 06:11:07 UTC) #20
commit-bot: I haz the power
8 years, 9 months ago (2012-02-29 08:08:24 UTC) #21
Change committed as 124151

Powered by Google App Engine
This is Rietveld 408576698