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

Unified Diff: chrome/browser/gtk/gtk_theme_provider.cc

Issue 1117008: Set the details field of the BROWSER_THEME_CHANGED notification to (Closed)
Patch Set: Created 10 years, 9 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/gtk/gtk_theme_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/gtk_theme_provider.cc
diff --git a/chrome/browser/gtk/gtk_theme_provider.cc b/chrome/browser/gtk/gtk_theme_provider.cc
index 7438bbf7f9a12e17d04ebbcd7b3889d808a8fc4d..42277247e94ff0b998e46b5de7ae635c46b92ccd 100644
--- a/chrome/browser/gtk/gtk_theme_provider.cc
+++ b/chrome/browser/gtk/gtk_theme_provider.cc
@@ -195,7 +195,7 @@ void GtkThemeProvider::SetNativeTheme() {
profile()->GetPrefs()->SetBoolean(prefs::kUsesSystemTheme, true);
ClearAllThemeData();
LoadGtkValues();
- NotifyThemeChanged();
+ NotifyThemeChanged(NULL);
}
void GtkThemeProvider::Observe(NotificationType type,
@@ -395,8 +395,8 @@ void GtkThemeProvider::LoadThemePrefs() {
}
}
-void GtkThemeProvider::NotifyThemeChanged() {
- BrowserThemeProvider::NotifyThemeChanged();
+void GtkThemeProvider::NotifyThemeChanged(Extension* extension) {
+ BrowserThemeProvider::NotifyThemeChanged(extension);
// Notify all GtkChromeButtons of their new rendering mode:
for (std::vector<GtkWidget*>::iterator it = chrome_buttons_.begin();
@@ -424,7 +424,7 @@ void GtkThemeProvider::OnStyleSet(GtkWidget* widget,
if (provider->profile()->GetPrefs()->GetBoolean(prefs::kUsesSystemTheme)) {
provider->ClearAllThemeData();
provider->LoadGtkValues();
- provider->NotifyThemeChanged();
+ provider->NotifyThemeChanged(NULL);
}
// Free the old icons only after the theme change notification has gone
« no previous file with comments | « chrome/browser/gtk/gtk_theme_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698