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

Unified Diff: chrome/browser/ui/gtk/options/content_page_gtk.cc

Issue 6532033: Disable "Reset to Default theme"/"Use classic theme" correctly. (Closed) Base URL: svn://svn.chromium.org/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
Index: chrome/browser/ui/gtk/options/content_page_gtk.cc
diff --git a/chrome/browser/ui/gtk/options/content_page_gtk.cc b/chrome/browser/ui/gtk/options/content_page_gtk.cc
index e90e6673b20ec5a4d63b27955e8a1b65766e067b..f682b54101324d1b0fc56df2499dca90149132b4 100644
--- a/chrome/browser/ui/gtk/options/content_page_gtk.cc
+++ b/chrome/browser/ui/gtk/options/content_page_gtk.cc
@@ -201,7 +201,7 @@ void ContentPageGtk::ObserveThemeChanged() {
bool is_gtk_theme = false;
#endif
- bool is_classic_theme = !is_gtk_theme && provider->GetThemeID().empty();
+ bool is_classic_theme = !is_gtk_theme && provider->UsingDefaultTheme();
gtk_widget_set_sensitive(themes_reset_button_, !is_classic_theme);
}

Powered by Google App Engine
This is Rietveld 408576698