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

Issue 9424024: Force browser action icon size to always be 19px (Closed)

Created:
8 years, 10 months ago by cduvall
Modified:
8 years, 9 months ago
CC:
chris hebert , clark duvall , clinton staley , devlin cronin , matthew tytel , mitchell rosen , eriq augustine , chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Force browser action icon size to always be 19px Fixed the browser action bar so that it will render the icon normal size if an icon is not specified. Also re-worked a test case for dynamically changing the browser action icon (BrowserActionApiTest.DynamicBrowserAction). Made the test more robust by checking the pixels of the icon to make sure it is actually changed. Screenshots of before and after are posted on the bug. BUG=111301 TEST=Load an extension with a browser action and no icon specified. The icon now should be the default extension icon. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125314

Patch Set 1 #

Patch Set 2 : Small change to comment. #

Total comments: 8

Patch Set 3 : Small changes to comments. #

Patch Set 4 : Removed default icon. Made icons always render the same size. #

Patch Set 5 : Removed unnecessary #include #

Total comments: 3

Patch Set 6 : Api test no longer expects default icon #

Patch Set 7 : Removed icon file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -6 lines) Patch
M chrome/browser/extensions/browser_action_apitest.cc View 1 2 3 4 5 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
cduvall
8 years, 10 months ago (2012-02-19 00:35:10 UTC) #1
Devlin
https://chromiumcodereview.appspot.com/9424024/diff/3001/chrome/browser/extensions/browser_action_apitest.cc File chrome/browser/extensions/browser_action_apitest.cc (right): https://chromiumcodereview.appspot.com/9424024/diff/3001/chrome/browser/extensions/browser_action_apitest.cc#newcode119 chrome/browser/extensions/browser_action_apitest.cc:119: // Reset prev_id for next test. Please use proper ...
8 years, 10 months ago (2012-02-25 18:41:00 UTC) #2
cduvall
https://chromiumcodereview.appspot.com/9424024/diff/3001/chrome/browser/extensions/browser_action_apitest.cc File chrome/browser/extensions/browser_action_apitest.cc (right): https://chromiumcodereview.appspot.com/9424024/diff/3001/chrome/browser/extensions/browser_action_apitest.cc#newcode119 chrome/browser/extensions/browser_action_apitest.cc:119: // Reset prev_id for next test. On 2012/02/25 18:41:00, ...
8 years, 10 months ago (2012-02-25 19:23:06 UTC) #3
Devlin
LGTM.
8 years, 10 months ago (2012-02-25 19:26:24 UTC) #4
cduvall
Here's a CL for the small icon bug. Any feedback is appreciated. Thanks.
8 years, 10 months ago (2012-02-25 20:49:06 UTC) #5
cduvall
Here's a CL for the small icon bug. Any feedback is appreciated. Thanks.
8 years, 9 months ago (2012-02-29 02:14:20 UTC) #6
Aaron Boodman
Defaulting to the puzzle piece icon is a good idea, and is something we want ...
8 years, 9 months ago (2012-02-29 20:51:48 UTC) #7
cduvall
On 2012/02/29 20:51:48, Aaron Boodman wrote: > Defaulting to the puzzle piece icon is a ...
8 years, 9 months ago (2012-03-02 06:26:13 UTC) #8
Aaron Boodman
Seems OK to me, but you need a GTK owner to also say: LGTM http://codereview.chromium.org/9424024/diff/16001/chrome/browser/extensions/browser_action_apitest.cc ...
8 years, 9 months ago (2012-03-02 20:16:39 UTC) #9
Evan Stade
gtk lgtm
8 years, 9 months ago (2012-03-02 21:10:38 UTC) #10
cduvall
http://codereview.chromium.org/9424024/diff/16001/chrome/browser/extensions/browser_action_apitest.cc File chrome/browser/extensions/browser_action_apitest.cc (right): http://codereview.chromium.org/9424024/diff/16001/chrome/browser/extensions/browser_action_apitest.cc#newcode115 chrome/browser/extensions/browser_action_apitest.cc:115: // Test to make sure the images are different. ...
8 years, 9 months ago (2012-03-02 22:18:30 UTC) #11
Aaron Boodman
LGTM http://codereview.chromium.org/9424024/diff/16001/chrome/browser/extensions/browser_action_apitest.cc File chrome/browser/extensions/browser_action_apitest.cc (right): http://codereview.chromium.org/9424024/diff/16001/chrome/browser/extensions/browser_action_apitest.cc#newcode115 chrome/browser/extensions/browser_action_apitest.cc:115: // Test to make sure the images are ...
8 years, 9 months ago (2012-03-02 22:34:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/9424024/16001
8 years, 9 months ago (2012-03-02 22:49:05 UTC) #13
Aaron Boodman
I would love the puzzle piece as default on all platforms (we have been wanting ...
8 years, 9 months ago (2012-03-02 22:57:45 UTC) #14
commit-bot: I haz the power
Try job failure for 9424024-16001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-03 00:11:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/9424024/22001
8 years, 9 months ago (2012-03-03 18:32:30 UTC) #16
commit-bot: I haz the power
Try job failure for 9424024-22001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-03 19:49:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/9424024/31001
8 years, 9 months ago (2012-03-07 01:15:26 UTC) #18
commit-bot: I haz the power
8 years, 9 months ago (2012-03-07 03:18:47 UTC) #19
Change committed as 125314

Powered by Google App Engine
This is Rietveld 408576698