summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_browser_actions_api.cc
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 13:33:41 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 13:33:41 +0000
commitf3e5d10e506cabb24a281d479a9d7709124f1b1d (patch)
treeb25777d62ce8502e8abb2140fc279641979e6d3c /chrome/browser/extensions/extension_browser_actions_api.cc
parent348485a3172d3c2be639189884b4263a90410a79 (diff)
downloadchromium_src-f3e5d10e506cabb24a281d479a9d7709124f1b1d.zip
chromium_src-f3e5d10e506cabb24a281d479a9d7709124f1b1d.tar.gz
chromium_src-f3e5d10e506cabb24a281d479a9d7709124f1b1d.tar.bz2
Revert 29457, because this is making ExtensionBrowserTest.PageAction crash on Vista
Original description: Implement badges for page actions. Also add badge text color API. Also change color APIs from wanting ARGB to RGBA. BUG=24635 BUG=24644 BUG=25215 Review URL: http://codereview.chromium.org/291003 TBR=mpcomplete@chromium.org Review URL: http://codereview.chromium.org/306004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29509 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_browser_actions_api.cc')
-rw-r--r--chrome/browser/extensions/extension_browser_actions_api.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_browser_actions_api.cc b/chrome/browser/extensions/extension_browser_actions_api.cc
index 6c83ee0..5cf68e8 100644
--- a/chrome/browser/extensions/extension_browser_actions_api.cc
+++ b/chrome/browser/extensions/extension_browser_actions_api.cc
@@ -115,8 +115,8 @@ bool BrowserActionSetBadgeBackgroundColorFunction::RunImpl() {
EXTENSION_FUNCTION_VALIDATE(list->GetInteger(i, &color_array[i]));
}
- SkColor color = SkColorSetARGB(color_array[3], color_array[0], color_array[1],
- color_array[2]);
+ SkColor color = SkColorSetARGB(color_array[0], color_array[1], color_array[2],
+ color_array[3]);
Extension* extension = dispatcher()->GetExtension();
if (!extension->browser_action()) {