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

Issue 518653002: Add the "options_ui" extension manifest field. (Closed)

Created:
6 years, 3 months ago by ericzeng
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, chromium-apps-reviews_chromium.org, tfarina, arv+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Committed: https://crrev.com/09a7e00df7e8316a01cda0288577a293d7d126a3 Cr-Commit-Position: refs/heads/master@{#294019}

Patch Set 1 #

Total comments: 56

Patch Set 2 : Fix everything #

Total comments: 42

Patch Set 3 : Address kalman's comments #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Address yoz's comments #

Total comments: 6

Patch Set 6 : Fix flag logic and define directive #

Total comments: 46

Patch Set 7 : Address comments #

Total comments: 19

Patch Set 8 : comments #

Patch Set 9 : Rebase and replace another instance of ManifestURL::GetOptionsPage #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase #

Patch Set 12 : Fix build issue? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -152 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/background/background_mode_manager.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/autotest_private/autotest_private_api.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/developer_private/developer_private_api.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_context_menu_model.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_tab_util.cc View 1 2 3 4 5 6 7 8 9 5 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/guest_view/extension_options/extension_options_guest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/extensions/extension_list.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_controller_delegate.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_action_context_menu_controller.mm View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/extensions/application_launch.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_basic_info.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/common/extensions/api/input_ime/input_components_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/chrome_manifest_handlers.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc View 1 2 3 4 5 6 2 chunks +72 lines, -15 lines 0 comments Download
M chrome/common/extensions/manifest_url_handler.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -20 lines 0 comments Download
M chrome/common/extensions/manifest_url_handler.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -73 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/options_ui_flags_false.json View 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/options_ui_flags_true.json View 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/options_ui_page_bad_url.json View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/options_ui_page_basic.json View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/options_ui_page_with_legacy_page.json View 1 chunk +10 lines, -0 lines 0 comments Download
M extensions/common/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/api/_manifest_features.json View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/api/extensions_manifest_types.json View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
A extensions/common/manifest_handlers/options_page_info.h View 1 2 3 4 5 6 7 1 chunk +87 lines, -0 lines 0 comments Download
A extensions/common/manifest_handlers/options_page_info.cc View 1 2 3 4 5 6 7 1 chunk +226 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/extensions_strings.grd View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (12 generated)
ericzeng
ericzeng@chromium.org changed reviewers: + fsamuel@chromium.org, kalman@chromium.org, rdevlin.cronin@chromium.org, yoz@chromium.org
6 years, 3 months ago (2014-08-29 04:40:31 UTC) #1
ericzeng
PTAL. Sorry about the massive patch, here's what's going on in this CL implementation-wise: - ...
6 years, 3 months ago (2014-08-29 04:40:31 UTC) #2
not at google - send to devlin
Lotsa comments, but looks great. https://codereview.chromium.org/518653002/diff/1/chrome/browser/extensions/extension_context_menu_model.cc File chrome/browser/extensions/extension_context_menu_model.cc (right): https://codereview.chromium.org/518653002/diff/1/chrome/browser/extensions/extension_context_menu_model.cc#newcode147 chrome/browser/extensions/extension_context_menu_model.cc:147: .length() > 0; Weird. ...
6 years, 3 months ago (2014-08-29 05:39:25 UTC) #3
Fady Samuel
The guest_view change seems trivial and I'm not too familiar with the other stuff, so ...
6 years, 3 months ago (2014-08-29 14:30:18 UTC) #4
ericzeng
Initial round of responses from the bus https://codereview.chromium.org/518653002/diff/1/chrome/browser/resources/extensions/extension_list.js File chrome/browser/resources/extensions/extension_list.js (right): https://codereview.chromium.org/518653002/diff/1/chrome/browser/resources/extensions/extension_list.js#newcode275 chrome/browser/resources/extensions/extension_list.js:275: if (this.data_.enableEmbeddedExtensionOptions ...
6 years, 3 months ago (2014-08-29 16:52:22 UTC) #5
ericzeng
https://codereview.chromium.org/518653002/diff/1/chrome/browser/extensions/extension_context_menu_model.cc File chrome/browser/extensions/extension_context_menu_model.cc (right): https://codereview.chromium.org/518653002/diff/1/chrome/browser/extensions/extension_context_menu_model.cc#newcode147 chrome/browser/extensions/extension_context_menu_model.cc:147: .length() > 0; On 2014/08/29 05:39:23, kalman wrote: > ...
6 years, 3 months ago (2014-08-29 22:08:51 UTC) #6
ericzeng
https://codereview.chromium.org/518653002/diff/1/chrome/browser/extensions/extension_context_menu_model.cc File chrome/browser/extensions/extension_context_menu_model.cc (right): https://codereview.chromium.org/518653002/diff/1/chrome/browser/extensions/extension_context_menu_model.cc#newcode147 chrome/browser/extensions/extension_context_menu_model.cc:147: .length() > 0; On 2014/08/29 05:39:23, kalman wrote: > ...
6 years, 3 months ago (2014-08-29 22:08:52 UTC) #7
not at google - send to devlin
Basically lg. https://codereview.chromium.org/518653002/diff/20001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/518653002/diff/20001/chrome/browser/extensions/extension_tab_util.cc#newcode571 chrome/browser/extensions/extension_tab_util.cc:571: if (FeatureSwitch::embedded_extension_options()->IsEnabled() && Remove this FeatureSwitch check? ...
6 years, 3 months ago (2014-08-29 22:33:38 UTC) #8
Yoyo Zhou
Mostly nits. https://chromiumcodereview.appspot.com/518653002/diff/20001/chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc File chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc (right): https://chromiumcodereview.appspot.com/518653002/diff/20001/chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc#newcode48 chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc:48: // Tests for the options_ui.page manifest field ...
6 years, 3 months ago (2014-08-29 23:06:27 UTC) #9
not at google - send to devlin
https://chromiumcodereview.appspot.com/518653002/diff/20001/extensions/common/api/_manifest_features.json File extensions/common/api/_manifest_features.json (right): https://chromiumcodereview.appspot.com/518653002/diff/20001/extensions/common/api/_manifest_features.json#newcode100 extensions/common/api/_manifest_features.json:100: "extension_types": ["extension"] On 2014/08/29 23:06:27, Yoyo Zhou wrote: > ...
6 years, 3 months ago (2014-08-29 23:26:42 UTC) #10
ericzeng
https://codereview.chromium.org/518653002/diff/20001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/518653002/diff/20001/chrome/browser/extensions/extension_tab_util.cc#newcode571 chrome/browser/extensions/extension_tab_util.cc:571: if (FeatureSwitch::embedded_extension_options()->IsEnabled() && On 2014/08/29 22:33:37, kalman wrote: > ...
6 years, 3 months ago (2014-08-29 23:54:04 UTC) #11
not at google - send to devlin
lgtm https://codereview.chromium.org/518653002/diff/40001/extensions/common/manifest_handlers/options_page_info.cc File extensions/common/manifest_handlers/options_page_info.cc (right): https://codereview.chromium.org/518653002/diff/40001/extensions/common/manifest_handlers/options_page_info.cc#newcode139 extensions/common/manifest_handlers/options_page_info.cc:139: &options_ui_error, This overrides any existing value for |options_ui_error|. ...
6 years, 3 months ago (2014-08-30 00:48:11 UTC) #12
ericzeng
https://codereview.chromium.org/518653002/diff/20001/chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc File chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc (right): https://codereview.chromium.org/518653002/diff/20001/chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc#newcode48 chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc:48: // Tests for the options_ui.page manifest field On 2014/08/29 ...
6 years, 3 months ago (2014-09-02 18:23:38 UTC) #13
ericzeng
https://codereview.chromium.org/518653002/diff/20001/extensions/common/manifest_handlers/options_page_info.cc File extensions/common/manifest_handlers/options_page_info.cc (right): https://codereview.chromium.org/518653002/diff/20001/extensions/common/manifest_handlers/options_page_info.cc#newcode131 extensions/common/manifest_handlers/options_page_info.cc:131: bool open_in_tab = !FeatureSwitch::embedded_extension_options()->IsEnabled(); On 2014/08/29 23:54:03, ericzeng wrote: ...
6 years, 3 months ago (2014-09-02 21:08:46 UTC) #14
Devlin
https://codereview.chromium.org/518653002/diff/100001/chrome/browser/resources/extensions/extension_list.js File chrome/browser/resources/extensions/extension_list.js (right): https://codereview.chromium.org/518653002/diff/100001/chrome/browser/resources/extensions/extension_list.js#newcode275 chrome/browser/resources/extensions/extension_list.js:275: if (!extension.options_open_in_tab) { nit: no unix_hacker_style in js. https://codereview.chromium.org/518653002/diff/100001/chrome/browser/ui/app_list/app_list_controller_delegate.cc ...
6 years, 3 months ago (2014-09-02 21:42:30 UTC) #15
Yoyo Zhou
https://chromiumcodereview.appspot.com/518653002/diff/80001/extensions/common/manifest_handlers/options_page_info.cc File extensions/common/manifest_handlers/options_page_info.cc (right): https://chromiumcodereview.appspot.com/518653002/diff/80001/extensions/common/manifest_handlers/options_page_info.cc#newcode131 extensions/common/manifest_handlers/options_page_info.cc:131: // OptionsUI::FromValue populates |error| both when there are |error| ...
6 years, 3 months ago (2014-09-02 21:54:36 UTC) #16
Devlin
https://chromiumcodereview.appspot.com/518653002/diff/100001/extensions/common/manifest_handlers/options_page_info.cc File extensions/common/manifest_handlers/options_page_info.cc (right): https://chromiumcodereview.appspot.com/518653002/diff/100001/extensions/common/manifest_handlers/options_page_info.cc#newcode90 extensions/common/manifest_handlers/options_page_info.cc:90: return GURL::EmptyGURL(); On 2014/09/02 21:54:35, Yoyo Zhou wrote: > ...
6 years, 3 months ago (2014-09-02 22:08:19 UTC) #17
Yoyo Zhou
https://chromiumcodereview.appspot.com/518653002/diff/100001/extensions/common/manifest_handlers/options_page_info.cc File extensions/common/manifest_handlers/options_page_info.cc (right): https://chromiumcodereview.appspot.com/518653002/diff/100001/extensions/common/manifest_handlers/options_page_info.cc#newcode90 extensions/common/manifest_handlers/options_page_info.cc:90: return GURL::EmptyGURL(); On 2014/09/02 22:08:19, Devlin wrote: > On ...
6 years, 3 months ago (2014-09-02 22:10:29 UTC) #18
Devlin
https://chromiumcodereview.appspot.com/518653002/diff/100001/extensions/common/manifest_handlers/options_page_info.cc File extensions/common/manifest_handlers/options_page_info.cc (right): https://chromiumcodereview.appspot.com/518653002/diff/100001/extensions/common/manifest_handlers/options_page_info.cc#newcode90 extensions/common/manifest_handlers/options_page_info.cc:90: return GURL::EmptyGURL(); On 2014/09/02 22:10:29, Yoyo Zhou wrote: > ...
6 years, 3 months ago (2014-09-02 22:14:57 UTC) #19
not at google - send to devlin
https://chromiumcodereview.appspot.com/518653002/diff/80001/extensions/common/manifest_handlers/options_page_info.cc File extensions/common/manifest_handlers/options_page_info.cc (right): https://chromiumcodereview.appspot.com/518653002/diff/80001/extensions/common/manifest_handlers/options_page_info.cc#newcode131 extensions/common/manifest_handlers/options_page_info.cc:131: // OptionsUI::FromValue populates |error| both when there are On ...
6 years, 3 months ago (2014-09-03 16:11:29 UTC) #20
ericzeng
https://codereview.chromium.org/518653002/diff/80001/extensions/common/manifest_handlers/options_page_info.cc File extensions/common/manifest_handlers/options_page_info.cc (right): https://codereview.chromium.org/518653002/diff/80001/extensions/common/manifest_handlers/options_page_info.cc#newcode166 extensions/common/manifest_handlers/options_page_info.cc:166: // Prefer the options_ui.page url over the options_page url. ...
6 years, 3 months ago (2014-09-03 17:52:15 UTC) #21
Yoyo Zhou
LGTM https://chromiumcodereview.appspot.com/518653002/diff/120001/extensions/common/manifest_handlers/options_page_info.cc File extensions/common/manifest_handlers/options_page_info.cc (right): https://chromiumcodereview.appspot.com/518653002/diff/120001/extensions/common/manifest_handlers/options_page_info.cc#newcode88 extensions/common/manifest_handlers/options_page_info.cc:88: if (!info) Use ternary operator as Devlin suggests.
6 years, 3 months ago (2014-09-04 21:15:09 UTC) #22
Devlin
https://codereview.chromium.org/518653002/diff/120001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/518653002/diff/120001/chrome/browser/extensions/extension_tab_util.cc#newcode572 chrome/browser/extensions/extension_tab_util.cc:572: // If embedded extension options are enabled, open chrome://extensions ...
6 years, 3 months ago (2014-09-04 21:16:05 UTC) #23
ericzeng
https://codereview.chromium.org/518653002/diff/120001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/518653002/diff/120001/chrome/browser/extensions/extension_tab_util.cc#newcode572 chrome/browser/extensions/extension_tab_util.cc:572: // If embedded extension options are enabled, open chrome://extensions ...
6 years, 3 months ago (2014-09-04 22:22:08 UTC) #24
Devlin
https://codereview.chromium.org/518653002/diff/120001/extensions/common/manifest_handlers/options_page_info.cc File extensions/common/manifest_handlers/options_page_info.cc (right): https://codereview.chromium.org/518653002/diff/120001/extensions/common/manifest_handlers/options_page_info.cc#newcode118 extensions/common/manifest_handlers/options_page_info.cc:118: bool open_in_tab = !FeatureSwitch::embedded_extension_options()->IsEnabled(); On 2014/09/04 22:22:07, ericzeng wrote: ...
6 years, 3 months ago (2014-09-04 22:45:32 UTC) #25
Devlin
lgtm
6 years, 3 months ago (2014-09-04 22:49:58 UTC) #26
Fady Samuel
guest_view lgtm
6 years, 3 months ago (2014-09-04 22:52:56 UTC) #27
ericzeng
atwilson@chromium.org: Please review changes in chrome/browser/background/background_mode_manager.cc avi@chromium.org: Please review changes in chrome/browser/ui/cocoa/extensions/extension_action_context_menu_controller.mm benwells@chromium.org: Please review ...
6 years, 3 months ago (2014-09-04 23:27:56 UTC) #29
Avi (use Gerrit)
chrome/browser/ui/cocoa LGTM
6 years, 3 months ago (2014-09-05 15:55:29 UTC) #30
ericzeng
ping benwells/atwilson
6 years, 3 months ago (2014-09-08 17:22:31 UTC) #31
ericzeng
Swapping atwilson@ for calamity@
6 years, 3 months ago (2014-09-08 19:18:05 UTC) #33
ericzeng
Or not... I misread the OWNERS file. calamity: could you still take a look at ...
6 years, 3 months ago (2014-09-08 19:20:06 UTC) #35
Andrew T Wilson (Slow)
background lgtm
6 years, 3 months ago (2014-09-08 22:49:52 UTC) #36
benwells
c/b/ui lgtm
6 years, 3 months ago (2014-09-09 00:05:17 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/518653002/180001
6 years, 3 months ago (2014-09-09 00:34:16 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/3185) android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/2991) android_dbg_tests_recipe ...
6 years, 3 months ago (2014-09-09 06:52:37 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/518653002/200001
6 years, 3 months ago (2014-09-09 17:25:11 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/3328)
6 years, 3 months ago (2014-09-09 17:46:09 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/518653002/220001
6 years, 3 months ago (2014-09-09 20:34:56 UTC) #48
commit-bot: I haz the power
Failed to commit the patch.
6 years, 3 months ago (2014-09-09 21:58:55 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/518653002/220001
6 years, 3 months ago (2014-09-09 22:06:15 UTC) #52
commit-bot: I haz the power
Failed to apply patch for chrome/app/generated_resources.grd: While running git apply --index -p1; error: patch failed: ...
6 years, 3 months ago (2014-09-09 22:43:25 UTC) #54
ericzeng
It looks like this was committed as https://chromium.googlesource.com/chromium/src.git/+/09a7e00df7e8316a01cda0288577a293d7d126a3 even though it says it couldn't apply ...
6 years, 3 months ago (2014-09-09 23:21:04 UTC) #55
Yoyo Zhou
On 2014/09/09 23:21:04, ericzeng wrote: > It looks like this was committed as > https://chromium.googlesource.com/chromium/src.git/+/09a7e00df7e8316a01cda0288577a293d7d126a3 ...
6 years, 3 months ago (2014-09-10 00:15:48 UTC) #56
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:56:01 UTC) #57
Patchset 12 (id:??) landed as
https://crrev.com/09a7e00df7e8316a01cda0288577a293d7d126a3
Cr-Commit-Position: refs/heads/master@{#294019}

Powered by Google App Engine
This is Rietveld 408576698