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

Unified Diff: chrome/browser/dom_ui/options/personal_options_handler.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/dom_ui/options/personal_options_handler.cc
diff --git a/chrome/browser/dom_ui/options/personal_options_handler.cc b/chrome/browser/dom_ui/options/personal_options_handler.cc
index 45f727eaa14e050018becd67ddca6066531a82dd..b489cf2d6cc4534b5403dc2d2be1b154cc051fdb 100644
--- a/chrome/browser/dom_ui/options/personal_options_handler.cc
+++ b/chrome/browser/dom_ui/options/personal_options_handler.cc
@@ -294,7 +294,7 @@ void PersonalOptionsHandler::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();
FundamentalValue enabled(!is_classic_theme);
web_ui_->CallJavascriptFunction(
L"options.PersonalOptions.setThemesResetButtonEnabled", enabled);
« no previous file with comments | « no previous file | chrome/browser/themes/browser_theme_provider.cc » ('j') | chrome/browser/themes/browser_theme_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698