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

Unified Diff: chrome/browser/extensions/extension_disabled_ui.cc

Issue 10041015: Change extension permissions increase alert icon to green arrow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: # Created 8 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_disabled_ui.cc
diff --git a/chrome/browser/extensions/extension_disabled_ui.cc b/chrome/browser/extensions/extension_disabled_ui.cc
index 9fe64e978a09458548206145f096f0cd1ecedf3d..bd3afaec7eaecede116b6fa84500661b98c12142 100644
--- a/chrome/browser/extensions/extension_disabled_ui.cc
+++ b/chrome/browser/extensions/extension_disabled_ui.cc
@@ -31,6 +31,7 @@
#include "content/public/browser/notification_source.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
+#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
@@ -131,9 +132,11 @@ class ExtensionDisabledGlobalError : public GlobalError,
// GlobalError implementation.
virtual bool HasBadge() OVERRIDE;
+ virtual int GetBadgeResourceID() OVERRIDE;
virtual bool HasMenuItem() OVERRIDE;
virtual int MenuItemCommandID() OVERRIDE;
virtual string16 MenuItemLabel() OVERRIDE;
+ virtual int MenuItemIconResourceID() OVERRIDE;
virtual void ExecuteMenuItem(Browser* browser) OVERRIDE;
virtual bool HasBubbleView() OVERRIDE;
virtual string16 GetBubbleViewTitle() OVERRIDE;
@@ -198,6 +201,10 @@ bool ExtensionDisabledGlobalError::HasBadge() {
return true;
}
+int ExtensionDisabledGlobalError::GetBadgeResourceID() {
+ return IDR_UPDATE_BADGE;
+}
+
bool ExtensionDisabledGlobalError::HasMenuItem() {
return true;
}
@@ -206,6 +213,10 @@ int ExtensionDisabledGlobalError::MenuItemCommandID() {
return menu_command_id_;
}
+int ExtensionDisabledGlobalError::MenuItemIconResourceID() {
+ return IDR_UPDATE_MENU;
+}
+
string16 ExtensionDisabledGlobalError::MenuItemLabel() {
return l10n_util::GetStringFUTF16(IDS_EXTENSION_DISABLED_ERROR_TITLE,
UTF8ToUTF16(extension_->name()));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698