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

Issue 9374009: Install platform apps into a separate data directory (Closed)

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

Description

Add extension path field to Mac platform apps This CL adds a new extension path field to Mac platform apps. This path is used to load the extension for Mac platform apps. BUG=112651 TEST=Installed a platform app. Verified that it could run side by side with Chromium. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123443

Patch Set 1 #

Patch Set 2 : fix comment #

Total comments: 10

Patch Set 3 : rebase, address review comments #

Total comments: 9

Patch Set 4 : address review comments #

Patch Set 5 : fix test #

Total comments: 12

Patch Set 6 : remove duplicate extension #

Total comments: 4

Patch Set 7 : address review comments #

Total comments: 2

Patch Set 8 : address review comments #

Total comments: 4

Patch Set 9 : address review comments #

Total comments: 5

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Patch Set 12 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -11 lines) Patch
M chrome/app/app_mode_loader_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/chrome_main_app_mode_mac.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -10 lines 0 comments Download
M chrome/browser/extensions/app_shortcut_manager.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/mac/app_mode_common.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/mac/app_mode_common.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
sail
8 years, 10 months ago (2012-02-09 04:48:21 UTC) #1
jeremy
Can you add unit tests. Also, can you add whoever wrote the extension install code ...
8 years, 10 months ago (2012-02-09 09:27:00 UTC) #2
Robert Sesek
Is the diffbase for the CL old? https://chromiumcodereview.appspot.com/9374009/diff/2001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://chromiumcodereview.appspot.com/9374009/diff/2001/chrome/browser/extensions/extension_service.cc#newcode164 chrome/browser/extensions/extension_service.cc:164: return false; ...
8 years, 10 months ago (2012-02-09 18:43:59 UTC) #3
Aaron Boodman
Are there any design documents about what the long-term plan is here? This seems to ...
8 years, 10 months ago (2012-02-09 22:00:57 UTC) #4
sail
On 2012/02/09 22:00:57, Aaron Boodman wrote: > Are there any design documents about what the ...
8 years, 10 months ago (2012-02-09 22:03:55 UTC) #5
sail
On 2012/02/09 09:27:00, jeremy wrote: > Can you add unit tests. Since this is behind ...
8 years, 10 months ago (2012-02-10 00:08:37 UTC) #6
sail
Rebased off tip of tree + latest patches. Please take another look. Also added more ...
8 years, 10 months ago (2012-02-10 00:13:18 UTC) #7
Mihai Parparita -not on Chrome
Possible alternate implementations of this that involve fewer changes in current extension code: Option 1 ...
8 years, 10 months ago (2012-02-10 00:14:41 UTC) #8
Aaron Boodman
https://chromiumcodereview.appspot.com/9374009/diff/2003/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://chromiumcodereview.appspot.com/9374009/diff/2003/chrome/browser/extensions/crx_installer.cc#newcode523 chrome/browser/extensions/crx_installer.cc:523: /*should_delete=*/true); In Chrome code, I usually see the format: ...
8 years, 10 months ago (2012-02-10 20:09:46 UTC) #9
Robert Sesek
https://chromiumcodereview.appspot.com/9374009/diff/2003/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://chromiumcodereview.appspot.com/9374009/diff/2003/chrome/browser/extensions/crx_installer.cc#newcode523 chrome/browser/extensions/crx_installer.cc:523: /*should_delete=*/true); On 2012/02/10 20:09:46, Aaron Boodman wrote: > In ...
8 years, 10 months ago (2012-02-10 20:16:01 UTC) #10
sail
https://chromiumcodereview.appspot.com/9374009/diff/2003/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://chromiumcodereview.appspot.com/9374009/diff/2003/chrome/browser/extensions/crx_installer.cc#newcode523 chrome/browser/extensions/crx_installer.cc:523: /*should_delete=*/true); On 2012/02/10 20:16:02, rsesek wrote: > On 2012/02/10 ...
8 years, 10 months ago (2012-02-11 23:15:11 UTC) #11
sail
On 2012/02/10 00:14:41, Mihai Parparita wrote: > Possible alternate implementations of this that involve fewer ...
8 years, 10 months ago (2012-02-11 23:16:21 UTC) #12
sail
Ping!
8 years, 10 months ago (2012-02-11 23:27:23 UTC) #13
jeremy
On Fri, Feb 10, 2012 at 2:08 AM, <sail@chromium.org> wrote: > On 2012/02/09 09:27:00, jeremy ...
8 years, 10 months ago (2012-02-12 09:40:11 UTC) #14
jeremy
https://chromiumcodereview.appspot.com/9374009/diff/12002/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://chromiumcodereview.appspot.com/9374009/diff/12002/chrome/browser/extensions/crx_installer.cc#newcode494 chrome/browser/extensions/crx_installer.cc:494: bool separate_data_dir_required = Could you add a comment explaining ...
8 years, 10 months ago (2012-02-12 09:40:28 UTC) #15
benwells
Review comments are dependent on my understanding what this cl is for, exactly. My understanding ...
8 years, 10 months ago (2012-02-13 02:55:44 UTC) #16
Mihai Parparita -not on Chrome
> Hi Mihai. Would you mind I did this in a separate CL. Currently it's ...
8 years, 10 months ago (2012-02-13 23:29:24 UTC) #17
Aaron Boodman
I like the idea of having the extension files only installed in the parent profile, ...
8 years, 10 months ago (2012-02-14 00:41:03 UTC) #18
Mihai Parparita -not on Chrome
On 2012/02/14 00:41:03, Aaron Boodman wrote: > Traditionally, we have had the invariant that only ...
8 years, 10 months ago (2012-02-14 00:46:57 UTC) #19
Aaron Boodman
On Mon, Feb 13, 2012 at 4:46 PM, <mihaip@chromium.org> wrote: > On 2012/02/14 00:41:03, Aaron ...
8 years, 10 months ago (2012-02-14 01:33:26 UTC) #20
sail
This CL is much simpler now. I made the following changes: - non-extension related plumbing ...
8 years, 10 months ago (2012-02-21 01:44:35 UTC) #21
sail
> I was a little concerned about using --load-extension because I > believe that the ...
8 years, 10 months ago (2012-02-21 01:45:51 UTC) #22
Mihai Parparita -not on Chrome
Nice, much simpler indeed. http://codereview.chromium.org/9374009/diff/19001/chrome/app/chrome_main_app_mode_mac.mm File chrome/app/chrome_main_app_mode_mac.mm (left): http://codereview.chromium.org/9374009/diff/19001/chrome/app/chrome_main_app_mode_mac.mm#oldcode51 chrome/app/chrome_main_app_mode_mac.mm:51: // TODO(viettrungluu): do something intelligent ...
8 years, 10 months ago (2012-02-21 20:41:02 UTC) #23
sail
http://codereview.chromium.org/9374009/diff/19001/chrome/app/chrome_main_app_mode_mac.mm File chrome/app/chrome_main_app_mode_mac.mm (left): http://codereview.chromium.org/9374009/diff/19001/chrome/app/chrome_main_app_mode_mac.mm#oldcode51 chrome/app/chrome_main_app_mode_mac.mm:51: // TODO(viettrungluu): do something intelligent with data On 2012/02/21 ...
8 years, 10 months ago (2012-02-22 23:35:33 UTC) #24
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/9374009/diff/24001/chrome/common/mac/app_mode_common.h File chrome/common/mac/app_mode_common.h (right): http://codereview.chromium.org/9374009/diff/24001/chrome/common/mac/app_mode_common.h#newcode36 chrome/common/mac/app_mode_common.h:36: extern NSString * const kCrAppModeExtensionPathKey; Nit: no space ...
8 years, 10 months ago (2012-02-23 00:25:19 UTC) #25
sail
http://codereview.chromium.org/9374009/diff/24001/chrome/common/mac/app_mode_common.h File chrome/common/mac/app_mode_common.h (right): http://codereview.chromium.org/9374009/diff/24001/chrome/common/mac/app_mode_common.h#newcode36 chrome/common/mac/app_mode_common.h:36: extern NSString * const kCrAppModeExtensionPathKey; On 2012/02/23 00:25:19, Mihai ...
8 years, 10 months ago (2012-02-23 00:42:48 UTC) #26
Robert Sesek
http://codereview.chromium.org/9374009/diff/29001/chrome/app/chrome_main_app_mode_mac.mm File chrome/app/chrome_main_app_mode_mac.mm (right): http://codereview.chromium.org/9374009/diff/29001/chrome/app/chrome_main_app_mode_mac.mm#newcode65 chrome/app/chrome_main_app_mode_mac.mm:65: argv[i] = const_cast<char*>(command_line.argv()[i].c_str()); Why do you need this const ...
8 years, 10 months ago (2012-02-23 01:23:47 UTC) #27
sail
http://codereview.chromium.org/9374009/diff/29001/chrome/app/chrome_main_app_mode_mac.mm File chrome/app/chrome_main_app_mode_mac.mm (right): http://codereview.chromium.org/9374009/diff/29001/chrome/app/chrome_main_app_mode_mac.mm#newcode65 chrome/app/chrome_main_app_mode_mac.mm:65: argv[i] = const_cast<char*>(command_line.argv()[i].c_str()); On 2012/02/23 01:23:47, rsesek wrote: > ...
8 years, 10 months ago (2012-02-23 04:19:40 UTC) #28
Robert Sesek
lgtm
8 years, 10 months ago (2012-02-23 18:48:01 UTC) #29
jeremy
http://codereview.chromium.org/9374009/diff/30003/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): http://codereview.chromium.org/9374009/diff/30003/chrome/app/app_mode_loader_mac.mm#newcode99 chrome/app/app_mode_loader_mac.mm:99: [info_plist objectForKey:app_mode::kCrAppModeExtensionPathKey]); What happens if the extension is missing? ...
8 years, 10 months ago (2012-02-23 19:46:47 UTC) #30
sail
http://codereview.chromium.org/9374009/diff/30003/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): http://codereview.chromium.org/9374009/diff/30003/chrome/app/app_mode_loader_mac.mm#newcode99 chrome/app/app_mode_loader_mac.mm:99: [info_plist objectForKey:app_mode::kCrAppModeExtensionPathKey]); On 2012/02/23 19:46:48, jeremy wrote: > What ...
8 years, 10 months ago (2012-02-23 19:49:29 UTC) #31
jeremy
lgtm
8 years, 10 months ago (2012-02-23 19:50:13 UTC) #32
benwells
lgtm for shortcut stuff, with nit. http://codereview.chromium.org/9374009/diff/30003/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): http://codereview.chromium.org/9374009/diff/30003/chrome/browser/shell_integration.h#newcode19 chrome/browser/shell_integration.h:19: class FilePath; Nit: ...
8 years, 10 months ago (2012-02-24 00:10:42 UTC) #33
sail
https://chromiumcodereview.appspot.com/9374009/diff/30003/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://chromiumcodereview.appspot.com/9374009/diff/30003/chrome/browser/shell_integration.h#newcode19 chrome/browser/shell_integration.h:19: class FilePath; On 2012/02/24 00:10:42, benwells wrote: > Nit: ...
8 years, 10 months ago (2012-02-24 05:01:14 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/9374009/36014
8 years, 10 months ago (2012-02-24 05:01:31 UTC) #35
commit-bot: I haz the power
8 years, 10 months ago (2012-02-24 06:52:49 UTC) #36
Change committed as 123443

Powered by Google App Engine
This is Rietveld 408576698