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

Issue 2206693002: Improve settings override bubble to indicate policy installed extensions (Closed)

Created:
4 years, 4 months ago by catmullings
Modified:
4 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve settings override bubble to indicate policy installed extensions Pertaining to settings override bubbles, remove button to "Restore settings" and add a badge indicating that the extension was installed by an administrator. BUG=630734 Committed: https://crrev.com/22bc237867193148a4a4e14ac925a41905fff817 Cr-Commit-Position: refs/heads/master@{#429376}

Patch Set 1 : Non-Mac implementation of badge/extra view, that is, admin icon and text #

Total comments: 31

Patch Set 2 : Addressed patch 1 code review #

Total comments: 42

Patch Set 3 : Addressed patch 2 code review #

Patch Set 4 : Addressed patch 3 code review #

Total comments: 17

Patch Set 5 : Addressed path 4 code review; initial attempt to remove "Restore Settings" button #

Total comments: 15

Patch Set 6 : Tests added; Addressed code review comments patch 5 #

Total comments: 6

Patch Set 7 : Fixed failing tests ToolbarActionsBarBubbleViewsTest.TestClickLearnMoreLink and TestBubbleLayoutAct… #

Total comments: 31

Patch Set 8 : Fixes and tests after bubble screenshot verification #

Total comments: 3

Patch Set 9 : Mac implementation with test #

Total comments: 36

Patch Set 10 #

Patch Set 11 : Rebase master #

Total comments: 28

Patch Set 12 #

Total comments: 2

Patch Set 13 : Rebase master. Addressing mac code review #

Total comments: 19

Patch Set 14 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+682 lines, -103 lines) Patch
M chrome/browser/extensions/dev_mode_bubble_delegate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/dev_mode_bubble_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_message_bubble_controller.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service_sync_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service_test_with_install.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service_test_with_install.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +39 lines, -33 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/ntp_overridden_bubble_delegate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/ntp_overridden_bubble_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/proxy_overridden_bubble_delegate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/proxy_overridden_bubble_delegate.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/settings_api_bubble_delegate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/settings_api_bubble_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/suspicious_extension_bubble_delegate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/suspicious_extension_bubble_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_message_bubble_browsertest_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +77 lines, -32 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +63 lines, -12 lines 0 comments Download
M chrome/browser/ui/extensions/blocked_action_bubble_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/blocked_action_bubble_delegate.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/extension_message_bubble_bridge.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/extension_message_bubble_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +52 lines, -0 lines 0 comments Download
A chrome/browser/ui/extensions/extension_message_bubble_bridge_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +145 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/test_toolbar_actions_bar_bubble_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/test_toolbar_actions_bar_bubble_delegate.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +45 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +137 lines, -2 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 121 (83 generated)
catmullings
Initial implementation of extra view / badge on non-mac platforms. Will follow up on removing ...
4 years, 4 months ago (2016-08-02 19:45:32 UTC) #2
Devlin
Nice! A few other high-level thoughts. - We should add tests. :) - Since this ...
4 years, 4 months ago (2016-08-02 20:34:06 UTC) #4
catmullings
Addressed patch 1 code review comments. No test yet. Still need to remove the "Restore ...
4 years, 4 months ago (2016-08-13 00:35:53 UTC) #5
Devlin
https://codereview.chromium.org/2206693002/diff/1/chrome/browser/ui/extensions/extension_message_bubble_bridge.cc File chrome/browser/ui/extensions/extension_message_bubble_bridge.cc (right): https://codereview.chromium.org/2206693002/diff/1/chrome/browser/ui/extensions/extension_message_bubble_bridge.cc#newcode115 chrome/browser/ui/extensions/extension_message_bubble_bridge.cc:115: // TODO: Stop after first policy extension encountered. Figure ...
4 years, 4 months ago (2016-08-22 20:59:42 UTC) #6
catmullings
Addressed patch 2 code review. One comment to follow up in person. https://codereview.chromium.org/2206693002/diff/20001/chrome/browser/ui/extensions/blocked_action_bubble_delegate.cc File chrome/browser/ui/extensions/blocked_action_bubble_delegate.cc ...
4 years, 3 months ago (2016-08-31 00:03:31 UTC) #7
Devlin
(Just responding) https://codereview.chromium.org/2206693002/diff/20001/chrome/browser/ui/extensions/extension_message_bubble_bridge.cc File chrome/browser/ui/extensions/extension_message_bubble_bridge.cc (right): https://codereview.chromium.org/2206693002/diff/20001/chrome/browser/ui/extensions/extension_message_bubble_bridge.cc#newcode88 chrome/browser/ui/extensions/extension_message_bubble_bridge.cc:88: if (list.empty()) On 2016/08/31 00:03:30, catmullings wrote: ...
4 years, 3 months ago (2016-08-31 18:46:45 UTC) #8
catmullings
Still need to remove the "Restore Settings" button, and then I will add a test. ...
4 years, 3 months ago (2016-09-06 19:16:23 UTC) #10
Devlin
Great! This is looking a lot better. https://codereview.chromium.org/2206693002/diff/60001/chrome/browser/ui/extensions/extension_message_bubble_bridge.cc File chrome/browser/ui/extensions/extension_message_bubble_bridge.cc (right): https://codereview.chromium.org/2206693002/diff/60001/chrome/browser/ui/extensions/extension_message_bubble_bridge.cc#newcode87 chrome/browser/ui/extensions/extension_message_bubble_bridge.cc:87: const extensions::ExtensionIdList& ...
4 years, 3 months ago (2016-09-07 18:37:50 UTC) #11
catmullings
Addressed path 4 code review; initial attempt to remove "Restore Settings" button. https://codereview.chromium.org/2206693002/diff/60001/chrome/browser/ui/extensions/extension_message_bubble_bridge.cc File chrome/browser/ui/extensions/extension_message_bubble_bridge.cc ...
4 years, 3 months ago (2016-09-08 15:42:30 UTC) #13
Devlin
https://codereview.chromium.org/2206693002/diff/100001/chrome/browser/extensions/extension_message_bubble_controller.h File chrome/browser/extensions/extension_message_bubble_controller.h (right): https://codereview.chromium.org/2206693002/diff/100001/chrome/browser/extensions/extension_message_bubble_controller.h#newcode90 chrome/browser/extensions/extension_message_bubble_controller.h:90: // Returns true if the extension is of a ...
4 years, 3 months ago (2016-09-12 22:51:44 UTC) #14
catmullings
Tests added; Addressed code review comments patch 5 https://codereview.chromium.org/2206693002/diff/100001/chrome/browser/extensions/extension_message_bubble_controller.h File chrome/browser/extensions/extension_message_bubble_controller.h (right): https://codereview.chromium.org/2206693002/diff/100001/chrome/browser/extensions/extension_message_bubble_controller.h#newcode90 chrome/browser/extensions/extension_message_bubble_controller.h:90: // ...
4 years, 3 months ago (2016-09-22 00:00:11 UTC) #16
Devlin
Can you also add a screenshot when you get a chance? https://codereview.chromium.org/2206693002/diff/140001/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views_unittest.cc File chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views_unittest.cc (right): ...
4 years, 2 months ago (2016-09-26 20:13:10 UTC) #25
catmullings
https://codereview.chromium.org/2206693002/diff/140001/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views_unittest.cc File chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views_unittest.cc (right): https://codereview.chromium.org/2206693002/diff/140001/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views_unittest.cc#newcode295 chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views_unittest.cc:295: EXPECT_EQ("ImageView", std::string(extra_view->GetClassName())); On 2016/09/26 20:13:09, Devlin wrote: > On ...
4 years, 2 months ago (2016-10-06 18:24:20 UTC) #28
Devlin
Just responding to comments for now - will take another look once the Mac implementation's ...
4 years, 2 months ago (2016-10-10 15:27:29 UTC) #33
catmullings
https://codereview.chromium.org/2206693002/diff/160001/chrome/browser/extensions/extension_message_bubble_bridge_unittest.cc File chrome/browser/extensions/extension_message_bubble_bridge_unittest.cc (right): https://codereview.chromium.org/2206693002/diff/160001/chrome/browser/extensions/extension_message_bubble_bridge_unittest.cc#newcode73 chrome/browser/extensions/extension_message_bubble_bridge_unittest.cc:73: extensions::ExtensionWebUIOverrideRegistrar::GetFactoryInstance() On 2016/10/06 18:24:19, catmullings wrote: > On 2016/09/26 ...
4 years, 2 months ago (2016-10-12 18:58:58 UTC) #36
Devlin
https://codereview.chromium.org/2206693002/diff/280001/chrome/browser/extensions/extension_service_test_with_install.cc File chrome/browser/extensions/extension_service_test_with_install.cc (right): https://codereview.chromium.org/2206693002/diff/280001/chrome/browser/extensions/extension_service_test_with_install.cc#newcode118 chrome/browser/extensions/extension_service_test_with_install.cc:118: installer->InstallCrx(crx_path); On 2016/10/12 18:58:58, catmullings wrote: > This line ...
4 years, 2 months ago (2016-10-12 20:16:54 UTC) #37
catmullings
https://codereview.chromium.org/2206693002/diff/280001/chrome/browser/extensions/extension_service_test_with_install.cc File chrome/browser/extensions/extension_service_test_with_install.cc (right): https://codereview.chromium.org/2206693002/diff/280001/chrome/browser/extensions/extension_service_test_with_install.cc#newcode118 chrome/browser/extensions/extension_service_test_with_install.cc:118: installer->InstallCrx(crx_path); On 2016/10/12 20:16:53, Devlin wrote: > On 2016/10/12 ...
4 years, 2 months ago (2016-10-14 23:16:47 UTC) #40
Devlin
Nice! I wanna take another quick look tomorrow morning, but overall this looks great. https://codereview.chromium.org/2206693002/diff/520001/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h ...
4 years, 2 months ago (2016-10-20 00:23:42 UTC) #79
Devlin
Nice! A few more nits, but certainly nothing major. I think you can probably also ...
4 years, 2 months ago (2016-10-20 17:04:07 UTC) #80
catmullings
Adding avi@ as a cocoa reviewer. avi: ui/cocoa/extensions/* contain the relevant files for review. https://codereview.chromium.org/2206693002/diff/520001/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h ...
4 years, 2 months ago (2016-10-21 03:49:30 UTC) #83
Avi (use Gerrit)
Cat, your new code in ui/cocoa/extensions/* fits in, but it's the old code that is ...
4 years, 2 months ago (2016-10-21 13:19:43 UTC) #88
catmullings
@Avi: Responding to your mac code question https://codereview.chromium.org/2206693002/diff/560001/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm File chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm (right): https://codereview.chromium.org/2206693002/diff/560001/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm#newcode224 chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm:224: [[[self window] ...
4 years, 1 month ago (2016-10-25 23:41:27 UTC) #89
catmullings
@Avi, disregard my previous comment. One clarification, how does the ownership/ref counting work in the ...
4 years, 1 month ago (2016-10-27 21:07:47 UTC) #90
Avi (use Gerrit)
On 2016/10/27 21:07:47, catmullings wrote: > For addTextFieldWithString,the ref count is: > +1 (alloc) > ...
4 years, 1 month ago (2016-10-27 21:37:14 UTC) #91
catmullings
On 2016/10/27 21:37:14, Avi wrote: > On 2016/10/27 21:07:47, catmullings wrote: > > For addTextFieldWithString,the ...
4 years, 1 month ago (2016-10-27 23:27:30 UTC) #92
Avi (use Gerrit)
On 2016/10/27 23:27:30, catmullings wrote: > On 2016/10/27 21:37:14, Avi wrote: > > On 2016/10/27 ...
4 years, 1 month ago (2016-10-28 01:58:03 UTC) #93
catmullings
Rebased master and made some code changes and comments for mac review. @Avi: toolbar_actions_bar_bubble_mac.mm https://codereview.chromium.org/2206693002/diff/600001/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm ...
4 years, 1 month ago (2016-10-29 02:14:50 UTC) #95
Avi (use Gerrit)
lgtm https://codereview.chromium.org/2206693002/diff/600001/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm File chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm (right): https://codereview.chromium.org/2206693002/diff/600001/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm#newcode77 chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm:77: [[InfoBubbleWindow alloc] On 2016/10/29 02:14:50, catmullings wrote: > ...
4 years, 1 month ago (2016-10-29 03:37:58 UTC) #100
Devlin
Just a few last nits. Also, please remember the format for Rietveld descriptions. [Title - ...
4 years, 1 month ago (2016-11-01 00:21:22 UTC) #101
catmullings
https://codereview.chromium.org/2206693002/diff/600001/chrome/browser/ui/extensions/settings_api_bubble_helpers.cc File chrome/browser/ui/extensions/settings_api_bubble_helpers.cc (right): https://codereview.chromium.org/2206693002/diff/600001/chrome/browser/ui/extensions/settings_api_bubble_helpers.cc#newcode75 chrome/browser/ui/extensions/settings_api_bubble_helpers.cc:75: #if !defined(OS_WIN) && !defined(OS_MACOSX) On 2016/11/01 00:21:21, Devlin wrote: ...
4 years, 1 month ago (2016-11-01 02:46:53 UTC) #105
catmullings
https://codereview.chromium.org/2206693002/diff/600001/chrome/browser/ui/extensions/settings_api_bubble_helpers.cc File chrome/browser/ui/extensions/settings_api_bubble_helpers.cc (right): https://codereview.chromium.org/2206693002/diff/600001/chrome/browser/ui/extensions/settings_api_bubble_helpers.cc#newcode75 chrome/browser/ui/extensions/settings_api_bubble_helpers.cc:75: #if !defined(OS_WIN) && !defined(OS_MACOSX) On 2016/11/01 00:21:21, Devlin wrote: ...
4 years, 1 month ago (2016-11-01 02:46:53 UTC) #106
catmullings
On 2016/11/01 00:21:22, Devlin wrote: > Just a few last nits. Also, please remember the ...
4 years, 1 month ago (2016-11-01 02:48:13 UTC) #107
Devlin
On 2016/11/01 02:48:13, catmullings wrote: > On 2016/11/01 00:21:22, Devlin wrote: > > Just a ...
4 years, 1 month ago (2016-11-01 14:54:26 UTC) #110
catmullings
On 2016/11/01 14:54:26, Devlin wrote: > On 2016/11/01 02:48:13, catmullings wrote: > > On 2016/11/01 ...
4 years, 1 month ago (2016-11-01 18:11:55 UTC) #112
Devlin
lgtm!
4 years, 1 month ago (2016-11-02 15:02:21 UTC) #113
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2206693002/620001
4 years, 1 month ago (2016-11-02 18:28:19 UTC) #116
commit-bot: I haz the power
Committed patchset #14 (id:620001)
4 years, 1 month ago (2016-11-02 20:00:06 UTC) #118
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 20:04:17 UTC) #120
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/22bc237867193148a4a4e14ac925a41905fff817
Cr-Commit-Position: refs/heads/master@{#429376}

Powered by Google App Engine
This is Rietveld 408576698