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

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

Issue 6546072: Clean up how we handle themes in the extensions system and management API.... Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 10 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/themes/browser_theme_provider.cc ('k') | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/gtk_theme_provider.cc
===================================================================
--- chrome/browser/ui/gtk/gtk_theme_provider.cc (revision 75613)
+++ chrome/browser/ui/gtk/gtk_theme_provider.cc (working copy)
@@ -336,12 +336,18 @@
}
void GtkThemeProvider::UseDefaultTheme() {
+ FilePath profile_basename = profile()->GetPath().BaseName();
+ LOG(INFO) << profile_basename.value() << " Gtk::UseDefaultTheme";
+
profile()->GetPrefs()->SetBoolean(prefs::kUsesSystemTheme, false);
LoadDefaultValues();
BrowserThemeProvider::UseDefaultTheme();
}
void GtkThemeProvider::SetNativeTheme() {
+ FilePath profile_basename = profile()->GetPath().BaseName();
+ LOG(INFO) << profile_basename.value() << " Gtk::SetNativeTheme";
+
profile()->GetPrefs()->SetBoolean(prefs::kUsesSystemTheme, true);
ClearAllThemeData();
LoadGtkValues();
« no previous file with comments | « chrome/browser/themes/browser_theme_provider.cc ('k') | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698