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

Issue 675023002: Make extensions that desire to act pop out if in overflow (Closed)

Created:
6 years, 2 months ago by Devlin
Modified:
6 years, 1 month ago
Reviewers:
Finnur, Peter Kasting
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make extensions that desire to act pop out if in overflow If an extension desires to act, it should pop itself out of the overflow menu. There should also be a visual queue for extensions that are already visible, but what exactly that should be is still being discussed. BUG=417441 Committed: https://crrev.com/d604171517135387ca3b4c33d7f1774c8d2d38b0 Cr-Commit-Position: refs/heads/master@{#302511}

Patch Set 1 : #

Patch Set 2 : Test fixes #

Total comments: 4

Patch Set 3 : #

Total comments: 34

Patch Set 4 : Peter's #

Total comments: 6

Patch Set 5 : Nits and Rebase #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -87 lines) Patch
M chrome/browser/extensions/extension_toolbar_model.h View 1 2 3 4 8 chunks +37 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model.cc View 1 2 3 4 5 4 chunks +58 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model_unittest.cc View 1 2 3 14 chunks +201 lines, -20 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm View 1 2 3 4 5 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.h View 1 2 3 4 3 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 3 4 5 13 chunks +106 lines, -30 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container_browsertest.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
Devlin
Finnur - one more for you. :)
6 years, 2 months ago (2014-10-24 00:27:57 UTC) #5
Finnur
Looks like you have some related test failures. Do they require simple augmentations to the ...
6 years, 2 months ago (2014-10-24 09:53:59 UTC) #6
Devlin
On 2014/10/24 09:53:59, Finnur wrote: > Looks like you have some related test failures. Do ...
6 years, 2 months ago (2014-10-24 15:50:54 UTC) #7
Finnur
Couple of nits. And one test is still failing. But apart from that LGTM https://codereview.chromium.org/675023002/diff/80001/chrome/browser/extensions/extension_toolbar_model.cc ...
6 years, 1 month ago (2014-10-25 14:09:58 UTC) #8
Devlin
https://codereview.chromium.org/675023002/diff/80001/chrome/browser/extensions/extension_toolbar_model.cc File chrome/browser/extensions/extension_toolbar_model.cc (left): https://codereview.chromium.org/675023002/diff/80001/chrome/browser/extensions/extension_toolbar_model.cc#oldcode156 chrome/browser/extensions/extension_toolbar_model.cc:156: if (extension && On 2014/10/25 14:09:58, Finnur wrote: > ...
6 years, 1 month ago (2014-10-29 20:29:28 UTC) #11
Devlin
This one too, please, Peter. :)
6 years, 1 month ago (2014-10-29 20:29:53 UTC) #13
Devlin
On 2014/10/29 20:29:53, Devlin wrote: > This one too, please, Peter. :) Peter - friendly ...
6 years, 1 month ago (2014-10-30 21:58:51 UTC) #14
Peter Kasting
https://codereview.chromium.org/675023002/diff/140001/chrome/browser/extensions/extension_toolbar_model.cc File chrome/browser/extensions/extension_toolbar_model.cc (right): https://codereview.chromium.org/675023002/diff/140001/chrome/browser/extensions/extension_toolbar_model.cc#newcode579 chrome/browser/extensions/extension_toolbar_model.cc:579: int base_visible = visible_icon_count_; Why do we need this ...
6 years, 1 month ago (2014-10-30 22:06:00 UTC) #15
Devlin
https://codereview.chromium.org/675023002/diff/140001/chrome/browser/extensions/extension_toolbar_model.cc File chrome/browser/extensions/extension_toolbar_model.cc (right): https://codereview.chromium.org/675023002/diff/140001/chrome/browser/extensions/extension_toolbar_model.cc#newcode579 chrome/browser/extensions/extension_toolbar_model.cc:579: int base_visible = visible_icon_count_; On 2014/10/30 22:05:59, Peter Kasting ...
6 years, 1 month ago (2014-10-31 17:44:10 UTC) #16
Peter Kasting
LGTM with a few substantive comments at the bottom. https://codereview.chromium.org/675023002/diff/140001/chrome/browser/extensions/extension_toolbar_model.h File chrome/browser/extensions/extension_toolbar_model.h (right): https://codereview.chromium.org/675023002/diff/140001/chrome/browser/extensions/extension_toolbar_model.h#newcode84 chrome/browser/extensions/extension_toolbar_model.h:84: ...
6 years, 1 month ago (2014-10-31 19:01:08 UTC) #17
Devlin
https://codereview.chromium.org/675023002/diff/160001/chrome/browser/extensions/extension_toolbar_model.cc File chrome/browser/extensions/extension_toolbar_model.cc (right): https://codereview.chromium.org/675023002/diff/160001/chrome/browser/extensions/extension_toolbar_model.cc#newcode634 chrome/browser/extensions/extension_toolbar_model.cc:634: result.rbegin() + (result.size() - boundary)); On 2014/10/31 19:01:08, Peter ...
6 years, 1 month ago (2014-10-31 20:49:30 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/675023002/200001
6 years, 1 month ago (2014-11-03 21:32:37 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:200001)
6 years, 1 month ago (2014-11-03 23:09:01 UTC) #21
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/d604171517135387ca3b4c33d7f1774c8d2d38b0 Cr-Commit-Position: refs/heads/master@{#302511}
6 years, 1 month ago (2014-11-03 23:09:40 UTC) #22
benwells
6 years, 1 month ago (2014-11-04 02:57:58 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:200001) has been created in
https://codereview.chromium.org/700453003/ by benwells@chromium.org.

The reason for reverting is: Suspect this patch of causing errors on linux
valgrind for LocationBarControllerUnitTest.NavigationClearsState.

http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20Tests%20%28v...

Sample valgrind output:
Suppression (error hash=#606630BA25518095#):
For more info on using suppressions see
http://dev.chromium.org/developers/tree-sheriffs/sheriff-details-chromium/mem...
{
<insert_a_suppression_name_here>
Memcheck:Unaddressable
fun:_ZN16ExtensionService21NotifyExtensionLoadedEPKN10extensions9ExtensionE
fun:_ZN16ExtensionService12AddExtensionEPKN10extensions9ExtensionE
fun:_ZN10extensions12_GLOBAL__N_129LocationBarControllerUnitTest12AddExtensionEbRKSs
fun:_ZN10extensions12_GLOBAL__N_156LocationBarControllerUnitTest_NavigationClearsState_Test8TestBodyEv
}.

Powered by Google App Engine
This is Rietveld 408576698