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

Unified Diff: chrome/browser/protector/default_search_provider_change.cc

Issue 8821011: Switch Protector to the new icons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unmerge changes from old CL Created 9 years 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
Index: chrome/browser/protector/default_search_provider_change.cc
diff --git a/chrome/browser/protector/default_search_provider_change.cc b/chrome/browser/protector/default_search_provider_change.cc
index feb221021856491b05bd78ee474be17e58c85586..b3c047f4884d5e62fd481a65814a85967d85bb4a 100644
--- a/chrome/browser/protector/default_search_provider_change.cc
+++ b/chrome/browser/protector/default_search_provider_change.cc
@@ -19,6 +19,7 @@
#include "googleurl/src/gurl.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
+#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
namespace protector {
@@ -96,6 +97,9 @@ class DefaultSearchProviderChange : public BaseSettingChange,
virtual void Discard() OVERRIDE;
virtual void Timeout() OVERRIDE;
virtual void OnBeforeRemoved() OVERRIDE;
+ virtual int GetBadgeIconID() const OVERRIDE;
+ virtual int GetMenuItemIconID() const OVERRIDE;
+ virtual int GetBubbleIconID() const OVERRIDE;
virtual string16 GetBubbleTitle() const OVERRIDE;
virtual string16 GetBubbleMessage() const OVERRIDE;
virtual string16 GetApplyButtonText() const OVERRIDE;
@@ -237,6 +241,18 @@ void DefaultSearchProviderChange::OnBeforeRemoved() {
protector()->GetTemplateURLService()->RemoveObserver(this);
}
+int DefaultSearchProviderChange::GetBadgeIconID() const {
+ return IDR_SEARCH_ENGINE_CHANGE_BADGE;
+}
+
+int DefaultSearchProviderChange::GetMenuItemIconID() const {
+ return IDR_SEARCH_ENGINE_CHANGE_MENU;
+}
+
+int DefaultSearchProviderChange::GetBubbleIconID() const {
+ return IDR_SEARCH_ENGINE_CHANGE_ALERT;
+}
+
string16 DefaultSearchProviderChange::GetBubbleTitle() const {
return l10n_util::GetStringUTF16(IDS_SEARCH_ENGINE_CHANGE_TITLE);
}
« no previous file with comments | « chrome/browser/protector/base_setting_change.h ('k') | chrome/browser/protector/settings_change_global_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698