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

Issue 10834383: Chrome OS "open with" picker allowing Web Intents (Closed)

Created:
8 years, 4 months ago by thorogood
Modified:
8 years, 3 months ago
Reviewers:
benwells, tbarzic, SeRya, memyy
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, oshima+watch_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Updates the Chrome OS file browser to support opening files with Web Intent handlers. Adds a basic test. This is added to the list of 'normal' file handlers in the same way that Drive tasks are currently added. (although I feel like the whole flow needs to be changed a bit, since we don't store defaults for anything but the original file browser tasks). BUG=138664 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157693

Patch Set 1 #

Patch Set 2 : Cleanup, moved code into file_browser_private_api.cc #

Patch Set 3 : Now uses AppEventRouter to actually dispatch call #

Patch Set 4 : Wrote ActionsForExtension #

Patch Set 5 : Fixed mime matching code, asserts that the mime-pattern "*" matches a blank mime-type (i.e. "*" mat… #

Total comments: 8

Patch Set 6 : Actually has a basic test! #

Patch Set 7 : sync to head, comment #

Total comments: 8

Patch Set 8 : merge #

Patch Set 9 : Partial fixes #

Patch Set 10 : Restrict actions to Web Intent view (http://webintents.org/view) #

Patch Set 11 : View-only test #

Patch Set 12 : Added unittest #

Patch Set 13 : Modifies platform_app_launcher to allow launching with a file path #

Patch Set 14 : TaskType enum #

Total comments: 18

Patch Set 15 : sync to head #

Patch Set 16 : benwells' changes #

Total comments: 4

Patch Set 17 : nit fixes #

Patch Set 18 : huge merge #

Patch Set 19 : tiny 80 chars fix #

Total comments: 17

Patch Set 20 : sync #

Patch Set 21 : WIP upload #

Patch Set 22 : Added WebIntentTaskExecutor #

Patch Set 23 : reorder class, revert net/* #

Total comments: 27

Patch Set 24 : address tbarzic comments #

Total comments: 2

Patch Set 25 : some fixes, haven't approached JS yet #

Total comments: 13

Patch Set 26 : minor fix #

Patch Set 27 : test updated, TODO: make task_type a string, not enum #

Patch Set 28 : enum => string #

Total comments: 25

Patch Set 29 : tbarzic comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+560 lines, -144 lines) Patch
M chrome/browser/chromeos/extensions/external_filesystem_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +31 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 17 chunks +140 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_handler_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 6 chunks +28 lines, -18 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_handler_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 21 chunks +174 lines, -80 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/drive_task_executor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/drive_task_executor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_special_storage_policy.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_special_storage_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 7 chunks +36 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_special_storage_policy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/resources/file_manager/js/file_tasks.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +18 lines, -14 lines 0 comments Download
A + chrome/test/data/extensions/api_test/filebrowser_component/intent.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/filebrowser_component/intent.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webintent_handler/background.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webintent_handler/manifest.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
thorogood
Hey Ben, PTAL.
8 years, 3 months ago (2012-08-25 04:25:07 UTC) #1
benwells
Initial comments... https://chromiumcodereview.appspot.com/10834383/diff/3006/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): https://chromiumcodereview.appspot.com/10834383/diff/3006/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode215 chrome/browser/chromeos/extensions/file_handler_util.cc:215: if (list->size() <= 1) { Could you ...
8 years, 3 months ago (2012-08-27 08:02:59 UTC) #2
thorogood
Some replies (not all). https://chromiumcodereview.appspot.com/10834383/diff/3006/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): https://chromiumcodereview.appspot.com/10834383/diff/3006/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode215 chrome/browser/chromeos/extensions/file_handler_util.cc:215: if (list->size() <= 1) { ...
8 years, 3 months ago (2012-08-28 00:04:03 UTC) #3
thorogood
https://chromiumcodereview.appspot.com/10834383/diff/3006/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): https://chromiumcodereview.appspot.com/10834383/diff/3006/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode836 chrome/browser/chromeos/extensions/file_handler_util.cc:836: if (IsWebIntentAction(action_id_)) { On 2012/08/27 08:02:59, benwells wrote: > ...
8 years, 3 months ago (2012-08-29 06:34:46 UTC) #4
thorogood
https://chromiumcodereview.appspot.com/10834383/diff/15001/chrome/browser/chromeos/extensions/file_handler_util.h File chrome/browser/chromeos/extensions/file_handler_util.h (right): https://chromiumcodereview.appspot.com/10834383/diff/15001/chrome/browser/chromeos/extensions/file_handler_util.h#newcode30 chrome/browser/chromeos/extensions/file_handler_util.h:30: // extension. This is a Web Intent if |action_id| ...
8 years, 3 months ago (2012-08-29 08:58:07 UTC) #5
benwells
http://codereview.chromium.org/10834383/diff/31001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10834383/diff/31001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode299 chrome/browser/chromeos/extensions/file_browser_private_api.cc:299: const std::string& action, std::string* title) { I think you ...
8 years, 3 months ago (2012-08-30 08:09:03 UTC) #6
thorogood
http://codereview.chromium.org/10834383/diff/31001/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): http://codereview.chromium.org/10834383/diff/31001/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode193 chrome/browser/chromeos/extensions/file_handler_util.cc:193: bool HasCommonTimestamp(LastUsedHandlerList* list) { On 2012/08/30 08:09:03, benwells wrote: ...
8 years, 3 months ago (2012-08-31 01:27:32 UTC) #7
benwells
lgtm with nits http://codereview.chromium.org/10834383/diff/35002/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10834383/diff/35002/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode86 chrome/browser/chromeos/extensions/file_browser_private_api.cc:86: const char kWebIntentViewAction[] = "http://webintents.org/view"; Nit: ...
8 years, 3 months ago (2012-08-31 05:40:15 UTC) #8
thorogood
http://codereview.chromium.org/10834383/diff/31001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10834383/diff/31001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode299 chrome/browser/chromeos/extensions/file_browser_private_api.cc:299: const std::string& action, std::string* title) { On 2012/08/30 08:09:03, ...
8 years, 3 months ago (2012-09-01 03:02:10 UTC) #9
thorogood
Hi Sergey/Toni, I'm mostly sending this to both of you because: Sergey has his name ...
8 years, 3 months ago (2012-09-06 08:41:57 UTC) #10
tbarzic
sorry for the delay, I forgot to publish comments on Friday.. https://chromiumcodereview.appspot.com/10834383/diff/38026/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): ...
8 years, 3 months ago (2012-09-11 02:01:40 UTC) #11
SeRya
lgtm
8 years, 3 months ago (2012-09-11 16:57:43 UTC) #12
thorogood
https://chromiumcodereview.appspot.com/10834383/diff/38026/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): https://chromiumcodereview.appspot.com/10834383/diff/38026/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode241 chrome/browser/chromeos/extensions/file_handler_util.cc:241: return base::StringPrintf("%s|%d|%s", On 2012/09/11 02:01:40, tbarzic wrote: > I'd ...
8 years, 3 months ago (2012-09-13 02:34:49 UTC) #13
tbarzic
http://codereview.chromium.org/10834383/diff/38026/chrome/test/data/extensions/api_test/filebrowser_component/main.js File chrome/test/data/extensions/api_test/filebrowser_component/main.js (right): http://codereview.chromium.org/10834383/diff/38026/chrome/test/data/extensions/api_test/filebrowser_component/main.js#newcode113 chrome/test/data/extensions/api_test/filebrowser_component/main.js:113: this.fileCreator_ = new TestFileCreator("tmp", true /* shouldRandomize */); Do ...
8 years, 3 months ago (2012-09-13 04:29:16 UTC) #14
thorogood
https://chromiumcodereview.appspot.com/10834383/diff/38026/chrome/test/data/extensions/api_test/filebrowser_component/main.js File chrome/test/data/extensions/api_test/filebrowser_component/main.js (right): https://chromiumcodereview.appspot.com/10834383/diff/38026/chrome/test/data/extensions/api_test/filebrowser_component/main.js#newcode113 chrome/test/data/extensions/api_test/filebrowser_component/main.js:113: this.fileCreator_ = new TestFileCreator("tmp", true /* shouldRandomize */); On ...
8 years, 3 months ago (2012-09-13 08:14:04 UTC) #15
benwells
https://chromiumcodereview.appspot.com/10834383/diff/41022/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://chromiumcodereview.appspot.com/10834383/diff/41022/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode248 chrome/browser/chromeos/extensions/file_browser_private_api.cc:248: // If this method returns true, also returns the ...
8 years, 3 months ago (2012-09-13 09:52:29 UTC) #16
tbarzic
https://chromiumcodereview.appspot.com/10834383/diff/38026/chrome/test/data/extensions/api_test/filebrowser_component/main.js File chrome/test/data/extensions/api_test/filebrowser_component/main.js (right): https://chromiumcodereview.appspot.com/10834383/diff/38026/chrome/test/data/extensions/api_test/filebrowser_component/main.js#newcode175 chrome/test/data/extensions/api_test/filebrowser_component/main.js:175: if (!this.expectations_.hasVerifyStep()) { On 2012/09/13 08:14:04, thorogood wrote: > ...
8 years, 3 months ago (2012-09-13 18:44:45 UTC) #17
thorogood
https://chromiumcodereview.appspot.com/10834383/diff/41022/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://chromiumcodereview.appspot.com/10834383/diff/41022/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode248 chrome/browser/chromeos/extensions/file_browser_private_api.cc:248: // If this method returns true, also returns the ...
8 years, 3 months ago (2012-09-16 03:41:18 UTC) #18
tbarzic
non test code looks good (except for few nits) I'm still concerned about test not ...
8 years, 3 months ago (2012-09-16 04:26:11 UTC) #19
benwells
https://chromiumcodereview.appspot.com/10834383/diff/41022/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://chromiumcodereview.appspot.com/10834383/diff/41022/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode248 chrome/browser/chromeos/extensions/file_browser_private_api.cc:248: // If this method returns true, also returns the ...
8 years, 3 months ago (2012-09-17 01:37:23 UTC) #20
thorogood
Still working on the test fix. https://chromiumcodereview.appspot.com/10834383/diff/46022/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://chromiumcodereview.appspot.com/10834383/diff/46022/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode277 chrome/browser/chromeos/extensions/file_browser_private_api.cc:277: return false; // ...
8 years, 3 months ago (2012-09-18 02:13:02 UTC) #21
tbarzic
https://chromiumcodereview.appspot.com/10834383/diff/46022/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): https://chromiumcodereview.appspot.com/10834383/diff/46022/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode580 chrome/browser/chromeos/extensions/file_handler_util.cc:580: // TODO: bigger explosion than this On 2012/09/18 02:13:02, ...
8 years, 3 months ago (2012-09-18 03:21:56 UTC) #22
thorogood
On 2012/09/18 03:21:56, tbarzic wrote: > https://chromiumcodereview.appspot.com/10834383/diff/46022/chrome/browser/chromeos/extensions/file_handler_util.cc > File chrome/browser/chromeos/extensions/file_handler_util.cc (right): > > https://chromiumcodereview.appspot.com/10834383/diff/46022/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode580 > ...
8 years, 3 months ago (2012-09-19 07:01:58 UTC) #23
thorogood
https://chromiumcodereview.appspot.com/10834383/diff/38026/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): https://chromiumcodereview.appspot.com/10834383/diff/38026/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode241 chrome/browser/chromeos/extensions/file_handler_util.cc:241: return base::StringPrintf("%s|%d|%s", On 2012/09/13 02:34:49, thorogood wrote: > On ...
8 years, 3 months ago (2012-09-19 07:07:17 UTC) #24
tbarzic
https://codereview.chromium.org/10834383/diff/54001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://codereview.chromium.org/10834383/diff/54001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode23 chrome/browser/chromeos/extensions/file_browser_private_api.cc:23: #include "base/utf_string_conversions.h" this goes before base/values.h https://codereview.chromium.org/10834383/diff/54001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode40 chrome/browser/chromeos/extensions/file_browser_private_api.cc:40: #include ...
8 years, 3 months ago (2012-09-19 15:45:13 UTC) #25
thorogood
https://codereview.chromium.org/10834383/diff/54001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://codereview.chromium.org/10834383/diff/54001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode23 chrome/browser/chromeos/extensions/file_browser_private_api.cc:23: #include "base/utf_string_conversions.h" On 2012/09/19 15:45:13, tbarzic wrote: > this ...
8 years, 3 months ago (2012-09-20 00:48:17 UTC) #26
tbarzic
lgtm https://codereview.chromium.org/10834383/diff/54001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://codereview.chromium.org/10834383/diff/54001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode23 chrome/browser/chromeos/extensions/file_browser_private_api.cc:23: #include "base/utf_string_conversions.h" On 2012/09/20 00:48:17, thorogood wrote: > ...
8 years, 3 months ago (2012-09-20 00:52:24 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10834383/64001
8 years, 3 months ago (2012-09-20 01:05:11 UTC) #28
commit-bot: I haz the power
Change committed as 157693
8 years, 3 months ago (2012-09-20 03:29:24 UTC) #29
memyy
I like good tunk'y. memyi04@ovi.com
8 years, 3 months ago (2012-09-20 03:58:56 UTC) #30
memyy
8 years, 3 months ago (2012-09-20 04:02:47 UTC) #31
memyy
8 years, 3 months ago (2012-09-20 08:32:46 UTC) #32

Powered by Google App Engine
This is Rietveld 408576698