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

Issue 1872223002: Add verbs API to file handlers. Modify the Chrome OS UI so that it displayes the internationalized … (Closed)

Created:
4 years, 8 months ago by cmihail
Modified:
4 years, 7 months ago
Reviewers:
mtomasz, Devlin, fukino, kinaba
CC:
chromium-reviews, extensions-reviews_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add verbs API to file handlers. Modify the Chrome OS UI so that it displayes the internationalized verb together with the extension name in the file manager. BUG=578725 R=fukino@chromium.org Committed: https://crrev.com/03a4c08c513f71d7bf2592bec43a33bfbf9290e9 Cr-Commit-Position: refs/heads/master@{#395782}

Patch Set 1 #

Patch Set 2 : Fix small nits after reading own CL. #

Total comments: 13

Patch Set 3 : Fix comments mentioned by fukino@. #

Total comments: 8

Patch Set 4 : Move verbs internationalization to JS from C++. #

Patch Set 5 : Remove unused internationalization function on C++ code. #

Total comments: 21

Patch Set 6 : Fix last comments. #

Patch Set 7 : Remove restriction to have uppercase verbs in manifest file. #

Total comments: 14

Patch Set 8 : Add an enum for verbs in idl file. #

Total comments: 11

Patch Set 9 : Fix comments. #

Patch Set 10 : Keep only Verb enum in file_manager_private.js. #

Total comments: 8

Patch Set 11 : Add unit tests for manifest verbs check. #

Patch Set 12 : Rebased with master and added share with verb for arc. #

Total comments: 8

Patch Set 13 : Fix last nits. #

Patch Set 14 : For the new function "getDefaultTask" return "opt_taskToUseIfNoDefault || null;" instead of returni… #

Patch Set 15 : Fix another of nits and add unit tests for SHARE_WITH after reading whole CL from scratch. #

Patch Set 16 : Move back to "open-with" for the id of the more actions dialog, as it breaks some browsers tests, a… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, -145 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/arc_file_tasks.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_tasks.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_tasks.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +68 lines, -45 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_tasks_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +150 lines, -25 lines 0 comments Download
M chrome/common/extensions/api/file_manager_private.idl View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_browser/app_file_handler_multi/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_browser/app_file_handler_multi/test.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M extensions/common/manifest_handlers/file_handler_info.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -0 lines 0 comments Download
M extensions/common/manifest_handlers/file_handler_info.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +31 lines, -2 lines 0 comments Download
M extensions/common/manifest_handlers/file_handler_manifest_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +17 lines, -14 lines 0 comments Download
A + extensions/test/data/manifest_tests/file_handlers_invalid_verb.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -5 lines 0 comments Download
M extensions/test/data/manifest_tests/file_handlers_valid.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M third_party/closure_compiler/externs/file_manager_private.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_manager_commands.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_tasks.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +53 lines, -14 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/task_controller.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +24 lines, -19 lines 0 comments Download
M ui/file_manager/file_manager/main.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 63 (22 generated)
cmihail
4 years, 8 months ago (2016-04-11 02:07:37 UTC) #1
fukino
Thank you! https://codereview.chromium.org/1872223002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc File chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc (right): https://codereview.chromium.org/1872223002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc#newcode202 chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc:202: converted.title = base::UTF16ToUTF8(task.task_title()); Just a question: Why ...
4 years, 8 months ago (2016-04-11 09:19:43 UTC) #2
cmihail
https://codereview.chromium.org/1872223002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc File chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc (right): https://codereview.chromium.org/1872223002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc#newcode202 chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc:202: converted.title = base::UTF16ToUTF8(task.task_title()); On 2016/04/11 09:19:43, fukino wrote: > ...
4 years, 8 months ago (2016-04-13 07:36:46 UTC) #3
fukino
https://codereview.chromium.org/1872223002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc File chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc (right): https://codereview.chromium.org/1872223002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc#newcode202 chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc:202: converted.title = base::UTF16ToUTF8(task.task_title()); On 2016/04/13 07:36:46, cmihail wrote: > ...
4 years, 8 months ago (2016-04-13 08:03:12 UTC) #5
mtomasz
https://codereview.chromium.org/1872223002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc File chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc (right): https://codereview.chromium.org/1872223002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc#newcode202 chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc:202: converted.title = base::UTF16ToUTF8(task.task_title()); On 2016/04/13 08:03:12, fukino wrote: > ...
4 years, 8 months ago (2016-04-13 09:17:07 UTC) #6
cmihail
https://codereview.chromium.org/1872223002/diff/40001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc File chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc (right): https://codereview.chromium.org/1872223002/diff/40001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc#newcode201 chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc:201: // TODO(cmihail): Does this conversion really work? On 2016/04/13 ...
4 years, 8 months ago (2016-04-18 01:28:10 UTC) #7
cmihail
https://codereview.chromium.org/1872223002/diff/80001/ui/file_manager/file_manager/foreground/js/file_tasks.js File ui/file_manager/file_manager/foreground/js/file_tasks.js (right): https://codereview.chromium.org/1872223002/diff/80001/ui/file_manager/file_manager/foreground/js/file_tasks.js#newcode357 ui/file_manager/file_manager/foreground/js/file_tasks.js:357: } else if (taskParts[2] === 'view-pdf') { Should we ...
4 years, 8 months ago (2016-04-18 01:30:46 UTC) #8
fukino
https://codereview.chromium.org/1872223002/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc File chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc (right): https://codereview.chromium.org/1872223002/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc#newcode13 chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc:13: #include "base/strings/utf_string_conversions.h" Not necessary https://codereview.chromium.org/1872223002/diff/80001/chrome/browser/chromeos/file_manager/file_tasks.cc File chrome/browser/chromeos/file_manager/file_tasks.cc (right): https://codereview.chromium.org/1872223002/diff/80001/chrome/browser/chromeos/file_manager/file_tasks.cc#newcode153 ...
4 years, 8 months ago (2016-04-18 08:06:06 UTC) #9
cmihail
https://codereview.chromium.org/1872223002/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc File chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc (right): https://codereview.chromium.org/1872223002/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc#newcode13 chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc:13: #include "base/strings/utf_string_conversions.h" On 2016/04/18 08:06:05, fukino wrote: > Not ...
4 years, 8 months ago (2016-04-21 09:36:44 UTC) #10
fukino
LGTM. Thank you! Please find an reviewer for extensions, and please check the closure compilation ...
4 years, 8 months ago (2016-04-25 04:26:16 UTC) #11
cmihail
On 2016/04/25 04:26:16, fukino (OOO til May 8) wrote: > LGTM. Thank you! > > ...
4 years, 7 months ago (2016-05-08 22:53:06 UTC) #14
Finnur
This is probably more appropriate for Devlin to approve. I haven't done any extensions work ...
4 years, 7 months ago (2016-05-09 09:38:49 UTC) #16
Devlin
I've added a couple questions to the doc (that seemed like a better place to ...
4 years, 7 months ago (2016-05-09 14:28:41 UTC) #17
cmihail
On 2016/05/09 14:28:41, Devlin wrote: > I've added a couple questions to the doc (that ...
4 years, 7 months ago (2016-05-16 07:50:09 UTC) #18
Devlin
https://codereview.chromium.org/1872223002/diff/120001/chrome/browser/chromeos/file_manager/file_tasks.cc File chrome/browser/chromeos/file_manager/file_tasks.cc (right): https://codereview.chromium.org/1872223002/diff/120001/chrome/browser/chromeos/file_manager/file_tasks.cc#newcode186 chrome/browser/chromeos/file_manager/file_tasks.cc:186: task_verb_(task_verb), Should we DCHECK that task_verb_ is a valid ...
4 years, 7 months ago (2016-05-16 16:17:32 UTC) #19
cmihail
https://codereview.chromium.org/1872223002/diff/120001/chrome/browser/chromeos/file_manager/file_tasks.cc File chrome/browser/chromeos/file_manager/file_tasks.cc (right): https://codereview.chromium.org/1872223002/diff/120001/chrome/browser/chromeos/file_manager/file_tasks.cc#newcode186 chrome/browser/chromeos/file_manager/file_tasks.cc:186: task_verb_(task_verb), On 2016/05/16 16:17:32, Devlin wrote: > Should we ...
4 years, 7 months ago (2016-05-18 02:35:31 UTC) #20
Devlin
https://codereview.chromium.org/1872223002/diff/140001/chrome/browser/chromeos/file_manager/file_tasks.h File chrome/browser/chromeos/file_manager/file_tasks.h (right): https://codereview.chromium.org/1872223002/diff/140001/chrome/browser/chromeos/file_manager/file_tasks.h#newcode175 chrome/browser/chromeos/file_manager/file_tasks.h:175: const extensions::api::file_manager_private::Verb& task_verb, const enum& is a little excessive ...
4 years, 7 months ago (2016-05-18 18:49:41 UTC) #21
cmihail
https://codereview.chromium.org/1872223002/diff/140001/chrome/browser/chromeos/file_manager/file_tasks.h File chrome/browser/chromeos/file_manager/file_tasks.h (right): https://codereview.chromium.org/1872223002/diff/140001/chrome/browser/chromeos/file_manager/file_tasks.h#newcode175 chrome/browser/chromeos/file_manager/file_tasks.h:175: const extensions::api::file_manager_private::Verb& task_verb, On 2016/05/18 18:49:40, Devlin wrote: > ...
4 years, 7 months ago (2016-05-18 22:53:36 UTC) #22
fukino
On 2016/05/18 22:53:36, cmihail wrote: > > Hmm, I tried running third_party/closure_compiler/run_compiler as mentioned at ...
4 years, 7 months ago (2016-05-19 07:53:01 UTC) #23
cmihail
On 2016/05/19 07:53:01, fukino wrote: > On 2016/05/18 22:53:36, cmihail wrote: > > > > ...
4 years, 7 months ago (2016-05-20 02:45:43 UTC) #24
Devlin
Getting close! https://codereview.chromium.org/1872223002/diff/180001/chrome/common/extensions/api/file_manager_private.idl File chrome/common/extensions/api/file_manager_private.idl (right): https://codereview.chromium.org/1872223002/diff/180001/chrome/common/extensions/api/file_manager_private.idl#newcode206 chrome/common/extensions/api/file_manager_private.idl:206: // Task verb (ex. Open With). Can ...
4 years, 7 months ago (2016-05-20 21:08:16 UTC) #25
cmihail
https://codereview.chromium.org/1872223002/diff/180001/chrome/common/extensions/api/file_manager_private.idl File chrome/common/extensions/api/file_manager_private.idl (right): https://codereview.chromium.org/1872223002/diff/180001/chrome/common/extensions/api/file_manager_private.idl#newcode206 chrome/common/extensions/api/file_manager_private.idl:206: // Task verb (ex. Open With). Can be empty ...
4 years, 7 months ago (2016-05-23 02:46:13 UTC) #26
kinaba
arc_file_tasks lgtm https://codereview.chromium.org/1872223002/diff/220001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/1872223002/diff/220001/chrome/app/chromeos_strings.grdp#newcode475 chrome/app/chromeos_strings.grdp:475: <message name="IDS_FILE_BROWSER_SHARE_WITH_ACTION_LABEL" desc="Menu item label, describing the ...
4 years, 7 months ago (2016-05-23 09:51:37 UTC) #28
Devlin
lgtm https://codereview.chromium.org/1872223002/diff/220001/chrome/browser/chromeos/file_manager/file_tasks.h File chrome/browser/chromeos/file_manager/file_tasks.h (right): https://codereview.chromium.org/1872223002/diff/220001/chrome/browser/chromeos/file_manager/file_tasks.h#newcode188 chrome/browser/chromeos/file_manager/file_tasks.h:188: const extensions::api::file_manager_private::Verb& task_verb() const { nit: again, const ...
4 years, 7 months ago (2016-05-23 16:35:06 UTC) #29
cmihail
https://codereview.chromium.org/1872223002/diff/220001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/1872223002/diff/220001/chrome/app/chromeos_strings.grdp#newcode475 chrome/app/chromeos_strings.grdp:475: <message name="IDS_FILE_BROWSER_SHARE_WITH_ACTION_LABEL" desc="Menu item label, describing the action of ...
4 years, 7 months ago (2016-05-24 05:43:37 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872223002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872223002/240001
4 years, 7 months ago (2016-05-24 05:43:58 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872223002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872223002/240001
4 years, 7 months ago (2016-05-24 05:44:23 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/217240)
4 years, 7 months ago (2016-05-24 06:58:54 UTC) #41
cmihail
https://codereview.chromium.org/1872223002/diff/220001/ui/file_manager/file_manager/foreground/js/file_tasks.js File ui/file_manager/file_manager/foreground/js/file_tasks.js (right): https://codereview.chromium.org/1872223002/diff/220001/ui/file_manager/file_manager/foreground/js/file_tasks.js#newcode886 ui/file_manager/file_manager/foreground/js/file_tasks.js:886: return opt_taskToUseIfNoDefault ? opt_taskToUseIfNoDefault : null; On 2016/05/23 16:35:06, ...
4 years, 7 months ago (2016-05-24 08:37:20 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872223002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872223002/280001
4 years, 7 months ago (2016-05-24 09:01:34 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/217313)
4 years, 7 months ago (2016-05-24 10:15:15 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872223002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872223002/300001
4 years, 7 months ago (2016-05-25 00:02:29 UTC) #49
cmihail
fukino@ can you take another look for the files app command id? I renamed it ...
4 years, 7 months ago (2016-05-25 00:03:10 UTC) #50
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-25 01:54:17 UTC) #52
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-25 01:54:29 UTC) #53
cmihail
On 2016/05/25 01:54:29, commit-bot: I haz the power wrote: > Dry run: None Last dry ...
4 years, 7 months ago (2016-05-25 02:12:59 UTC) #54
fukino
On 2016/05/25 02:12:59, cmihail wrote: > On 2016/05/25 01:54:29, commit-bot: I haz the power wrote: ...
4 years, 7 months ago (2016-05-25 02:24:30 UTC) #55
cmihail
On 2016/05/25 02:24:30, fukino wrote: > On 2016/05/25 02:12:59, cmihail wrote: > > On 2016/05/25 ...
4 years, 7 months ago (2016-05-25 02:25:24 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872223002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872223002/300001
4 years, 7 months ago (2016-05-25 02:26:04 UTC) #59
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 7 months ago (2016-05-25 02:30:56 UTC) #61
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 02:32:53 UTC) #63
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/03a4c08c513f71d7bf2592bec43a33bfbf9290e9
Cr-Commit-Position: refs/heads/master@{#395782}

Powered by Google App Engine
This is Rietveld 408576698