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

Unified Diff: chrome/browser/protector/settings_change_global_error.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
« no previous file with comments | « chrome/browser/protector/settings_change_global_error.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/protector/settings_change_global_error.cc
diff --git a/chrome/browser/protector/settings_change_global_error.cc b/chrome/browser/protector/settings_change_global_error.cc
index 74d8c833e9174e8bf5b868b03b55cc797b282361..fe1258cbd1b8ad95896acec6ff88454de951eeec 100644
--- a/chrome/browser/protector/settings_change_global_error.cc
+++ b/chrome/browser/protector/settings_change_global_error.cc
@@ -47,6 +47,10 @@ bool SettingsChangeGlobalError::HasBadge() {
return true;
}
+int SettingsChangeGlobalError::GetBadgeResourceID() {
+ return change_->GetBadgeIconID();
+}
+
bool SettingsChangeGlobalError::HasMenuItem() {
return true;
}
@@ -59,6 +63,10 @@ string16 SettingsChangeGlobalError::MenuItemLabel() {
return change_->GetBubbleTitle();
}
+int SettingsChangeGlobalError::MenuItemIconResourceID() {
+ return change_->GetMenuItemIconID();
+}
+
void SettingsChangeGlobalError::ExecuteMenuItem(Browser* browser) {
// Cancel previously posted tasks.
weak_factory_.InvalidateWeakPtrs();
@@ -70,6 +78,10 @@ bool SettingsChangeGlobalError::HasBubbleView() {
return true;
}
+int SettingsChangeGlobalError::GetBubbleViewIconResourceID() {
+ return change_->GetBubbleIconID();
+}
+
string16 SettingsChangeGlobalError::GetBubbleViewTitle() {
return change_->GetBubbleTitle();
}
« no previous file with comments | « chrome/browser/protector/settings_change_global_error.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698