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

Issue 12663023: [mac] Make app shims look in the correct user data dir on Canary. (Closed)

Created:
7 years, 9 months ago by jeremya
Modified:
7 years, 8 months ago
Reviewers:
Mark Mentovai, Nico, jeremy
CC:
chromium-reviews, sail+watch_chromium.org, playmobil
Visibility:
Public.

Description

[mac] Make app shims look in the correct user data dir on Canary. On Canary, the user data directory is affected by [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CrProductDirName"]. Unfortunately in app shims, [NSBundle mainBundle] refers to the app shim's bundle, not Chrome's bundle. This patch parameterises the user-data-directory-figuring-out code on the NSBundle, so that app shims can pass an NSBundle for the real Chrome bundle. R=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192644

Patch Set 1 #

Total comments: 16

Patch Set 2 : address comments #

Total comments: 4

Patch Set 3 : comments #

Patch Set 4 : fix compile #

Patch Set 5 : fix compile again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -20 lines) Patch
M chrome/app/chrome_main_app_mode_mac.mm View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M chrome/common/chrome_paths_internal.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths_mac.mm View 1 2 3 4 chunks +37 lines, -19 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
jeremya
7 years, 9 months ago (2013-03-22 01:22:41 UTC) #1
sail
CC jeremy who might be interested
7 years, 9 months ago (2013-03-22 01:50:50 UTC) #2
jeremy
Thanks sail@! I am interested, but it's the weekend here - will review properly on ...
7 years, 9 months ago (2013-03-22 07:23:41 UTC) #3
Mark Mentovai
https://codereview.chromium.org/12663023/diff/1/chrome/app/chrome_main_app_mode_mac.mm File chrome/app/chrome_main_app_mode_mac.mm (left): https://codereview.chromium.org/12663023/diff/1/chrome/app/chrome_main_app_mode_mac.mm#oldcode256 chrome/app/chrome_main_app_mode_mac.mm:256: chrome::RegisterPathProvider(); As long as we’re positive that nothing else ...
7 years, 9 months ago (2013-03-22 18:08:41 UTC) #4
jeremy
https://codereview.chromium.org/12663023/diff/1/chrome/common/chrome_paths_internal.h File chrome/common/chrome_paths_internal.h (right): https://codereview.chromium.org/12663023/diff/1/chrome/common/chrome_paths_internal.h#newcode98 chrome/common/chrome_paths_internal.h:98: // therein. Also, can you please document what |bundle| ...
7 years, 9 months ago (2013-03-24 14:17:13 UTC) #5
jeremya
https://codereview.chromium.org/12663023/diff/1/chrome/app/chrome_main_app_mode_mac.mm File chrome/app/chrome_main_app_mode_mac.mm (left): https://codereview.chromium.org/12663023/diff/1/chrome/app/chrome_main_app_mode_mac.mm#oldcode256 chrome/app/chrome_main_app_mode_mac.mm:256: chrome::RegisterPathProvider(); On 2013/03/22 18:08:41, Mark Mentovai wrote: > As ...
7 years, 8 months ago (2013-04-01 23:30:22 UTC) #6
jeremya
Ping :)
7 years, 8 months ago (2013-04-03 17:43:03 UTC) #7
Mark Mentovai
Sorry about that. LGTM with these minor changes. https://codereview.chromium.org/12663023/diff/9001/chrome/app/chrome_main_app_mode_mac.mm File chrome/app/chrome_main_app_mode_mac.mm (right): https://codereview.chromium.org/12663023/diff/9001/chrome/app/chrome_main_app_mode_mac.mm#newcode75 chrome/app/chrome_main_app_mode_mac.mm:75: if ...
7 years, 8 months ago (2013-04-03 17:52:01 UTC) #8
Nico
lgtm stamp
7 years, 8 months ago (2013-04-04 00:24:09 UTC) #9
jeremya
All done. Thanks :)
7 years, 8 months ago (2013-04-04 18:53:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/12663023/19001
7 years, 8 months ago (2013-04-04 18:53:32 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-04 18:55:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/12663023/19001
7 years, 8 months ago (2013-04-04 19:23:05 UTC) #13
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-04 19:25:20 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/12663023/19001
7 years, 8 months ago (2013-04-05 17:15:13 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-05 17:31:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/12663023/46001
7 years, 8 months ago (2013-04-05 19:34:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/12663023/52001
7 years, 8 months ago (2013-04-05 20:09:48 UTC) #18
commit-bot: I haz the power
7 years, 8 months ago (2013-04-05 23:27:23 UTC) #19
Message was sent while issue was closed.
Change committed as 192644

Powered by Google App Engine
This is Rietveld 408576698