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

Issue 484033003: Open embedded extension options from the extension action context menu (Closed)

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

Description

Open embedded extension options from the extension action context menu This CL allows the extension action context menu to use the new embedded extension options feature. If the enable-embedded-extension-options flag is enabled, instead of opening an extension's options page in it's own tab, it will open chrome://extensions, scroll down to the correct extension, and then open the embedded options page popup. The context menu opens a link to chrome://extensions/ with the query string ?options=|extensionId|. This query string is appended and removed whenever the embedded extension options popup is opened or closed. BUG=386842 Committed: https://crrev.com/f97b7c27ac0f16f163bbe9753cd84d79eafccb37 Cr-Commit-Position: refs/heads/master@{#291826}

Patch Set 1 #

Patch Set 2 : Fix some bugs #

Total comments: 2

Patch Set 3 : Move tab opening code from chrome_pages to ExtensionTabUtil #

Total comments: 9

Patch Set 4 : Address devlin's comments #

Patch Set 5 : Open options from context menu as a singleton tab, handle query string #

Total comments: 6

Patch Set 6 : Address nits #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Patch Set 9 : Put FeatureSwitch includes back into ExtensionMenuModel #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase #

Total comments: 17

Patch Set 12 : Refactor opening the overlay, replace state using uber utils #

Total comments: 2

Patch Set 13 : Address comments #

Patch Set 14 : Set optionsShown_ to false in refactored method #

Patch Set 15 : Fix missed cases in refactor - setting optionsShown_ in onclose, scrolling only in the context menu… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -25 lines) Patch
M chrome/browser/extensions/extension_tab_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +30 lines, -10 lines 0 comments Download
M chrome/browser/resources/extensions/extension_list.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +73 lines, -14 lines 0 comments Download
M chrome/browser/resources/extensions/extension_options_overlay.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
ericzeng
PTAL
6 years, 4 months ago (2014-08-19 17:33:04 UTC) #1
Devlin
https://codereview.chromium.org/484033003/diff/20001/chrome/browser/extensions/extension_context_menu_model.cc File chrome/browser/extensions/extension_context_menu_model.cc (right): https://codereview.chromium.org/484033003/diff/20001/chrome/browser/extensions/extension_context_menu_model.cc#newcode180 chrome/browser/extensions/extension_context_menu_model.cc:180: chrome::ShowExtensionOptions(browser_, extension->id()); will look at this more later, but ...
6 years, 4 months ago (2014-08-19 17:39:07 UTC) #2
ericzeng
https://codereview.chromium.org/484033003/diff/20001/chrome/browser/extensions/extension_context_menu_model.cc File chrome/browser/extensions/extension_context_menu_model.cc (right): https://codereview.chromium.org/484033003/diff/20001/chrome/browser/extensions/extension_context_menu_model.cc#newcode180 chrome/browser/extensions/extension_context_menu_model.cc:180: chrome::ShowExtensionOptions(browser_, extension->id()); On 2014/08/19 17:39:07, Devlin wrote: > will ...
6 years, 4 months ago (2014-08-19 18:25:39 UTC) #3
Devlin
https://codereview.chromium.org/484033003/diff/40001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/484033003/diff/40001/chrome/browser/extensions/extension_tab_util.cc#newcode571 chrome/browser/extensions/extension_tab_util.cc:571: if (extensions::FeatureSwitch::embedded_extension_options()->IsEnabled()) { no extensions:: https://codereview.chromium.org/484033003/diff/40001/chrome/browser/extensions/extension_tab_util.cc#newcode571 chrome/browser/extensions/extension_tab_util.cc:571: if (extensions::FeatureSwitch::embedded_extension_options()->IsEnabled()) ...
6 years, 4 months ago (2014-08-19 22:20:41 UTC) #4
ericzeng
https://codereview.chromium.org/484033003/diff/40001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/484033003/diff/40001/chrome/browser/extensions/extension_tab_util.cc#newcode571 chrome/browser/extensions/extension_tab_util.cc:571: if (extensions::FeatureSwitch::embedded_extension_options()->IsEnabled()) { On 2014/08/19 22:20:41, Devlin wrote: > ...
6 years, 4 months ago (2014-08-19 22:47:51 UTC) #5
ericzeng
ping?
6 years, 4 months ago (2014-08-20 20:39:39 UTC) #6
Devlin
per in-person demo: - Ideally, if we already have an extensions: page open, we use ...
6 years, 4 months ago (2014-08-20 20:56:52 UTC) #7
ericzeng
On 2014/08/20 20:56:52, Devlin wrote: > per in-person demo: > - Ideally, if we already ...
6 years, 4 months ago (2014-08-20 23:19:40 UTC) #8
Devlin
I'll probably want another demo later today :) https://codereview.chromium.org/484033003/diff/80001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/484033003/diff/80001/chrome/browser/extensions/extension_tab_util.cc#newcode576 chrome/browser/extensions/extension_tab_util.cc:576: chrome::GetSingletonTabNavigateParams(browser, ...
6 years, 4 months ago (2014-08-21 17:18:19 UTC) #9
Devlin
On 2014/08/21 17:18:19, Devlin wrote: > I'll probably want another demo later today :) > ...
6 years, 4 months ago (2014-08-21 17:50:40 UTC) #10
ericzeng
https://codereview.chromium.org/484033003/diff/80001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/484033003/diff/80001/chrome/browser/extensions/extension_tab_util.cc#newcode576 chrome/browser/extensions/extension_tab_util.cc:576: chrome::GetSingletonTabNavigateParams(browser, On 2014/08/21 17:18:19, Devlin wrote: > indentation Done. ...
6 years, 4 months ago (2014-08-21 17:59:52 UTC) #11
ericzeng
ping kalman
6 years, 3 months ago (2014-08-25 17:13:37 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc#newcode578 chrome/browser/extensions/extension_tab_util.cc:578: if (!extension->id().empty()) { I don't think it's possible for ...
6 years, 3 months ago (2014-08-25 18:11:07 UTC) #13
Devlin
https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc#newcode581 chrome/browser/extensions/extension_tab_util.cc:581: base::StringPrintf("options=%s", extension->id().c_str()); On 2014/08/25 18:11:07, kalman wrote: > Using ...
6 years, 3 months ago (2014-08-25 18:12:51 UTC) #14
ericzeng
https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc#newcode578 chrome/browser/extensions/extension_tab_util.cc:578: if (!extension->id().empty()) { On 2014/08/25 18:11:07, kalman wrote: > ...
6 years, 3 months ago (2014-08-25 21:42:35 UTC) #15
not at google - send to devlin
lgtm https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc#newcode578 chrome/browser/extensions/extension_tab_util.cc:578: if (!extension->id().empty()) { On 2014/08/25 21:42:34, ericzeng wrote: ...
6 years, 3 months ago (2014-08-25 21:53:29 UTC) #16
ericzeng
https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc#newcode578 chrome/browser/extensions/extension_tab_util.cc:578: if (!extension->id().empty()) { On 2014/08/25 21:53:29, kalman wrote: > ...
6 years, 3 months ago (2014-08-25 22:04:05 UTC) #17
not at google - send to devlin
https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc File chrome/browser/extensions/extension_tab_util.cc (right): https://codereview.chromium.org/484033003/diff/200001/chrome/browser/extensions/extension_tab_util.cc#newcode578 chrome/browser/extensions/extension_tab_util.cc:578: if (!extension->id().empty()) { On 2014/08/25 22:04:04, ericzeng wrote: > ...
6 years, 3 months ago (2014-08-25 22:07:53 UTC) #18
ericzeng
The CQ bit was checked by ericzeng@chromium.org
6 years, 3 months ago (2014-08-25 22:20:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/484033003/260001
6 years, 3 months ago (2014-08-25 22:22:19 UTC) #20
ericzeng
The CQ bit was unchecked by ericzeng@chromium.org
6 years, 3 months ago (2014-08-25 22:44:53 UTC) #21
ericzeng
The CQ bit was checked by ericzeng@chromium.org
6 years, 3 months ago (2014-08-25 22:51:12 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/484033003/280001
6 years, 3 months ago (2014-08-25 22:53:53 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-26 01:50:15 UTC) #24
commit-bot: I haz the power
Failed to commit the patch.
6 years, 3 months ago (2014-08-26 01:50:16 UTC) #25
ericzeng
The CQ bit was checked by ericzeng@chromium.org
6 years, 3 months ago (2014-08-26 03:05:13 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/484033003/280001
6 years, 3 months ago (2014-08-26 03:06:37 UTC) #27
commit-bot: I haz the power
Committed patchset #15 (280001) as 25e02de2817823f384721764956aa9a75a69adfb
6 years, 3 months ago (2014-08-26 03:07:46 UTC) #28
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:39:55 UTC) #29
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/f97b7c27ac0f16f163bbe9753cd84d79eafccb37
Cr-Commit-Position: refs/heads/master@{#291826}

Powered by Google App Engine
This is Rietveld 408576698