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

Issue 10883008: Port the Extension Install Bubble changes to Mac (Closed)

Created:
8 years, 4 months ago by Finnur
Modified:
8 years, 3 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Port the Extension Install Bubble changes to Mac. This makes sure Mac is in sync with Views and GTK when it comes to describing the Extension Command shortcut to the user. BUG=121417 TEST=Install an extension with an Extension Command on Mac and watch the install bubble describing the shortcut. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=153658

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -28 lines) Patch
M chrome/browser/extensions/api/commands/command_service.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm View 1 2 3 4 5 6 7 5 chunks +44 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm View 1 2 3 4 5 6 7 2 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_installed_bubble.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Finnur
8 years, 4 months ago (2012-08-23 13:44:42 UTC) #1
Nico
http://codereview.chromium.org/10883008/diff/3001/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm File chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm (right): http://codereview.chromium.org/10883008/diff/3001/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm#newcode56 chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm:56: if ((extension->browser_action()) || !extension->omnibox_keyword().empty() || Remove parens around first ...
8 years, 4 months ago (2012-08-23 15:42:12 UTC) #2
Finnur
Nico, please take another look. Elliot, can you give owners approval for browser/ui/GTK. Scott, can ...
8 years, 3 months ago (2012-08-24 12:55:26 UTC) #3
Aaron Boodman
http://codereview.chromium.org/10883008/diff/3001/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm File chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm (right): http://codereview.chromium.org/10883008/diff/3001/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm#newcode59 chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm:59: extension->browser_action_command() || extension->page_action_command()) { On 2012/08/24 12:55:26, Finnur wrote: ...
8 years, 3 months ago (2012-08-24 13:48:57 UTC) #4
Yoyo Zhou
extension stuff LGTM but for 1 comment http://codereview.chromium.org/10883008/diff/12010/chrome/common/extensions/extension.h File chrome/common/extensions/extension.h (right): http://codereview.chromium.org/10883008/diff/12010/chrome/common/extensions/extension.h#newcode612 chrome/common/extensions/extension.h:612: bool verbose_install_message() ...
8 years, 3 months ago (2012-08-24 15:56:21 UTC) #5
Elliot Glaysher
gtk lgtm
8 years, 3 months ago (2012-08-24 17:06:30 UTC) #6
Finnur
Nico: Ping
8 years, 3 months ago (2012-08-27 14:14:05 UTC) #7
Nico
8 years, 3 months ago (2012-08-27 19:08:40 UTC) #8
Thanks, I like this much better. LGTM with comments addressed.

> Ping.

I was out on friday. You can use who/reviewerlogin/calendar to check if
reviewers are away.

http://codereview.chromium.org/10883008/diff/5008/chrome/browser/ui/cocoa/ext...
File chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h
(right):

http://codereview.chromium.org/10883008/diff/5008/chrome/browser/ui/cocoa/ext...
chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h:113:
- (NSString*)getResourceIdForExtensionAction;
nit: This returns a string, not an Id, so it shouldn't be named "getresourceid".
Also, cocoa getters don't start with "get" (the function names below are wrong
too)). Maybe "infoText"?

Also, this isn't used by tests, so it can be declared in a private category in
the .mm file.

http://codereview.chromium.org/10883008/diff/5008/chrome/browser/ui/cocoa/ext...
File chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm
(right):

http://codereview.chromium.org/10883008/diff/5008/chrome/browser/ui/cocoa/ext...
chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm:297:
} else {
CHECK_EQ(extension_installed_bubble::kBrowserAction, type_);

http://codereview.chromium.org/10883008/diff/5008/chrome/browser/ui/cocoa/ext...
File
chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm
(right):

http://codereview.chromium.org/10883008/diff/5008/chrome/browser/ui/cocoa/ext...
chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm:192:
EXPECT_EQ(msg2Frame.origin.y,
NSMinY(msg2Frame)

http://codereview.chromium.org/10883008/diff/5008/chrome/browser/ui/cocoa/ext...
chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm:193:
msg3Frame.origin.y + msg3Frame.size.height +
NSMaxY(msg3Frame)

http://codereview.chromium.org/10883008/diff/5008/chrome/browser/ui/cocoa/ext...
chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm:197:
EXPECT_EQ(msg1Frame.origin.y,
same

http://codereview.chromium.org/10883008/diff/5008/chrome/browser/ui/cocoa/ext...
chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm:198:
msg2Frame.origin.y + msg2Frame.size.height +
same

Powered by Google App Engine
This is Rietveld 408576698