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

Unified Diff: chrome/common/extensions/extension.cc

Issue 10823143: Make the getAttention badge grey. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move the Grant/Appearance code into the switch Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/script_badge_controller.cc ('k') | chrome/common/extensions/extension_action.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 2fe50b27c25987ab3189c7d0c669e23b6ec29236..f3ddfc78fe584c3dd0cb5fa4c3aed0451db6629d 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -808,8 +808,9 @@ scoped_ptr<ExtensionAction> Extension::LoadExtensionActionHelper(
// Page/script actions are hidden/disabled by default, and browser actions are
// visible/enabled by default.
- result->SetIsVisible(ExtensionAction::kDefaultTabId,
- action_type == ExtensionAction::TYPE_BROWSER);
+ result->SetAppearance(ExtensionAction::kDefaultTabId,
+ action_type == ExtensionAction::TYPE_BROWSER ?
+ ExtensionAction::ACTIVE : ExtensionAction::INVISIBLE);
if (manifest_version_ == 1) {
const ListValue* icons = NULL;
« no previous file with comments | « chrome/browser/extensions/script_badge_controller.cc ('k') | chrome/common/extensions/extension_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698