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

Issue 2824553002: AppShell: pass command-line files to app as launch data (Closed)

Created:
3 years, 8 months ago by michaelpg
Modified:
3 years, 7 months ago
Reviewers:
rkc, benwells
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

AppShell: pass command-line files to app as launch data An app that registers file handlers can be passed filenames on the command line to use those files. BUG=679870 TBR=benwells@chromium.org # DEPS Review-Url: https://codereview.chromium.org/2824553002 Cr-Commit-Position: refs/heads/master@{#469827} Committed: https://chromium.googlesource.com/chromium/src/+/b7b29db1011a7b8e0e8816449e2209305402a46a

Patch Set 1 #

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -11 lines) Patch
M extensions/shell/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/DEPS View 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/shell/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/default_shell_browser_main_delegate.cc View 1 2 chunks +13 lines, -8 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (10 generated)
michaelpg
rkc: PTAL.
3 years, 8 months ago (2017-04-21 20:53:14 UTC) #2
rkc
lgtm https://codereview.chromium.org/2824553002/diff/20001/extensions/shell/browser/default_shell_browser_main_delegate.cc File extensions/shell/browser/default_shell_browser_main_delegate.cc (right): https://codereview.chromium.org/2824553002/diff/20001/extensions/shell/browser/default_shell_browser_main_delegate.cc#newcode61 extensions/shell/browser/default_shell_browser_main_delegate.cc:61: apps::LaunchPlatformAppWithCommandLineAndLaunchId( Out of curiousity, what's the difference between ...
3 years, 7 months ago (2017-05-02 23:49:34 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2824553002/40001
3 years, 7 months ago (2017-05-05 20:56:36 UTC) #6
michaelpg
https://codereview.chromium.org/2824553002/diff/20001/extensions/shell/browser/default_shell_browser_main_delegate.cc File extensions/shell/browser/default_shell_browser_main_delegate.cc (right): https://codereview.chromium.org/2824553002/diff/20001/extensions/shell/browser/default_shell_browser_main_delegate.cc#newcode61 extensions/shell/browser/default_shell_browser_main_delegate.cc:61: apps::LaunchPlatformAppWithCommandLineAndLaunchId( On 2017/05/02 23:49:34, rkc wrote: > Out of ...
3 years, 7 months ago (2017-05-05 21:01:40 UTC) #7
rkc
https://codereview.chromium.org/2824553002/diff/20001/extensions/shell/browser/default_shell_browser_main_delegate.cc File extensions/shell/browser/default_shell_browser_main_delegate.cc (right): https://codereview.chromium.org/2824553002/diff/20001/extensions/shell/browser/default_shell_browser_main_delegate.cc#newcode61 extensions/shell/browser/default_shell_browser_main_delegate.cc:61: apps::LaunchPlatformAppWithCommandLineAndLaunchId( On 2017/05/05 21:01:40, michaelpg wrote: > On 2017/05/02 ...
3 years, 7 months ago (2017-05-05 21:05:20 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/428810)
3 years, 7 months ago (2017-05-05 21:09:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2824553002/40001
3 years, 7 months ago (2017-05-05 21:14:07 UTC) #14
michaelpg
TBRing benwells for the +apps moving from extensions/shell/DEPS to extensions/shell/browser/DEPS
3 years, 7 months ago (2017-05-05 21:14:45 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/b7b29db1011a7b8e0e8816449e2209305402a46a
3 years, 7 months ago (2017-05-06 00:27:46 UTC) #19
benwells
This wasn't moving a dependency, it was adding a dependency. Now there is a circular ...
3 years, 7 months ago (2017-05-06 04:05:07 UTC) #20
michaelpg
On 2017/05/06 04:05:07, benwells wrote: > This wasn't moving a dependency, it was adding a ...
3 years, 7 months ago (2017-05-06 23:42:22 UTC) #21
michaelpg
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2864603007/ by michaelpg@chromium.org. ...
3 years, 7 months ago (2017-05-06 23:43:03 UTC) #22
benwells
3 years, 7 months ago (2017-05-08 07:58:48 UTC) #23
Message was sent while issue was closed.
On 2017/05/06 23:42:22, michaelpg wrote:
> On 2017/05/06 04:05:07, benwells wrote:
> > This wasn't moving a dependency, it was adding a dependency.
> 
> You're right, my mistake. I opened this a while ago, yesterday I mistook the -
> for a + when TBRing you.
> 
> I'll revert it, no reason not to.
> 
> > Now there is a
> > circular dependency between extensions and apps.
> > 
> > Can you do this without adding a dependency from extensions to apps?
> 
> //apps isn't meant to depend on //extensions/shell specifically. Perhaps we
> could express that with more DEPS rules, but I don't see why app_shell should
> necessarily live in //extensions anyway. (Maybe //apps/shell....)
> 
> We could add some sort of AppLauncher delegate that //apps implements, but
that
> seems kinda silly to me.

I agree. Put another way, it totally makes sense that the app shell depends on
apps but it's weird that app shell lives in extensions.

I'd be happy with this relanding, if you add an extra "-extensions/shell" in the
apps deps either as part of this CL or a follow up. Longer term maybe app shell
should move out of extensions and into apps.

Powered by Google App Engine
This is Rietveld 408576698