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

Issue 9845003: Pass command line arguments onto platform apps which provide the right intent. (Closed)

Created:
8 years, 9 months ago by benwells
Modified:
8 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, Aaron Boodman, jam, mihaip+watch_chromium.org, darin-cc_chromium.org, jeremya
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Pass command line arguments onto platform apps which provide the right intent. This is the first step to making platform apps document editors. This change allows platform apps to declare that they provide the webintents.org/view intent, and if so files passed on the command line will be passed through to the platform app's window.intent object, and the app will be given access to the file. BUG=None TEST=Browser test added

Patch Set 1 #

Patch Set 2 : Removed unneeded header #

Total comments: 1

Patch Set 3 : Use ScopedAllowIO to avoid race, don't check file existence, windows compile fix #

Total comments: 24

Patch Set 4 : Cleanup and nits #

Total comments: 9

Patch Set 5 : Rebase #

Patch Set 6 : Comment resposne #

Total comments: 2

Patch Set 7 : Include files #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -3 lines) Patch
M chrome/browser/extensions/platform_app_browsertest.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/browser/extensions/platform_app_intent_dispatcher.h View 1 2 3 4 5 1 chunk +30 lines, -0 lines 2 comments Download
A chrome/browser/extensions/platform_app_intent_dispatcher.cc View 1 2 3 4 5 1 chunk +100 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/platform_apps/document_editor/main.html View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/document_editor/manifest.json View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/document_editor/test.js View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/document_editor/test.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/intents/web_intents_direct_dispatch.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 1 comment Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/web_intents_dispatcher.h View 1 2 3 2 chunks +9 lines, -0 lines 2 comments Download

Messages

Total messages: 12 (0 generated)
benwells
There is a hard to reproduce problem with this code but would like to get ...
8 years, 9 months ago (2012-03-23 07:21:50 UTC) #1
James Hawkins
Adding myself to R=.
8 years, 9 months ago (2012-03-26 03:18:32 UTC) #2
benwells
I've avoided the race by using ScopedAllowIO to get the MIME type on the UI ...
8 years, 9 months ago (2012-03-26 03:47:33 UTC) #3
James Hawkins
Mostly style nits. http://codereview.chromium.org/9845003/diff/8001/chrome/browser/extensions/platform_app_browsertest.cc File chrome/browser/extensions/platform_app_browsertest.cc (right): http://codereview.chromium.org/9845003/diff/8001/chrome/browser/extensions/platform_app_browsertest.cc#newcode200 chrome/browser/extensions/platform_app_browsertest.cc:200: IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DocumentEditor) { nit: Document what ...
8 years, 9 months ago (2012-03-26 19:55:57 UTC) #4
benwells
Cleanup and nit addressing. http://codereview.chromium.org/9845003/diff/8001/chrome/browser/extensions/platform_app_browsertest.cc File chrome/browser/extensions/platform_app_browsertest.cc (right): http://codereview.chromium.org/9845003/diff/8001/chrome/browser/extensions/platform_app_browsertest.cc#newcode200 chrome/browser/extensions/platform_app_browsertest.cc:200: IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DocumentEditor) { On 2012/03/26 ...
8 years, 9 months ago (2012-03-27 04:24:12 UTC) #5
James Hawkins
http://codereview.chromium.org/9845003/diff/14004/chrome/browser/extensions/platform_app_intent_dispatcher.cc File chrome/browser/extensions/platform_app_intent_dispatcher.cc (right): http://codereview.chromium.org/9845003/diff/14004/chrome/browser/extensions/platform_app_intent_dispatcher.cc#newcode53 chrome/browser/extensions/platform_app_intent_dispatcher.cc:53: const string16 kOpenAction = ASCIIToUTF16("http://webintents.org/view"); Can we find a ...
8 years, 9 months ago (2012-03-28 00:59:52 UTC) #6
benwells
http://codereview.chromium.org/9845003/diff/14004/chrome/browser/extensions/platform_app_intent_dispatcher.cc File chrome/browser/extensions/platform_app_intent_dispatcher.cc (right): http://codereview.chromium.org/9845003/diff/14004/chrome/browser/extensions/platform_app_intent_dispatcher.cc#newcode53 chrome/browser/extensions/platform_app_intent_dispatcher.cc:53: const string16 kOpenAction = ASCIIToUTF16("http://webintents.org/view"); On 2012/03/28 00:59:52, James ...
8 years, 9 months ago (2012-03-28 04:50:26 UTC) #7
James Hawkins
LGTM with nit. http://codereview.chromium.org/9845003/diff/23001/content/browser/intents/web_intents_direct_dispatch.cc File content/browser/intents/web_intents_direct_dispatch.cc (right): http://codereview.chromium.org/9845003/diff/23001/content/browser/intents/web_intents_direct_dispatch.cc#newcode13 content/browser/intents/web_intents_direct_dispatch.cc:13: render_view_host->Send(new IntentsMsg_SetWebIntentData( nit: Add include for ...
8 years, 9 months ago (2012-03-28 05:17:40 UTC) #8
benwells
+avi for content/public changes http://codereview.chromium.org/9845003/diff/23001/content/browser/intents/web_intents_direct_dispatch.cc File content/browser/intents/web_intents_direct_dispatch.cc (right): http://codereview.chromium.org/9845003/diff/23001/content/browser/intents/web_intents_direct_dispatch.cc#newcode13 content/browser/intents/web_intents_direct_dispatch.cc:13: render_view_host->Send(new IntentsMsg_SetWebIntentData( On 2012/03/28 05:17:41, ...
8 years, 9 months ago (2012-03-28 07:47:59 UTC) #9
Greg Billock
Our data type for MIME may need to be broadened to always support URLs as ...
8 years, 9 months ago (2012-03-28 14:21:02 UTC) #10
benwells
Some comment responses. I'll be waiting until http://codereview.chromium.org/9651020/ lands (and gives me the extra_data intent ...
8 years, 9 months ago (2012-03-29 03:29:18 UTC) #11
benwells
8 years, 7 months ago (2012-05-09 06:00:10 UTC) #12
Closing this issue as the code has changed dramatically. Will post a new cl.

Powered by Google App Engine
This is Rietveld 408576698