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

Unified Diff: chrome/browser/browser_theme_provider.cc

Issue 278004: Disable "Reset to Default Theme" button in Google Chrome Options / Personal S... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/app/nibs/Preferences.xib ('k') | chrome/browser/cocoa/preferences_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_theme_provider.cc
===================================================================
--- chrome/browser/browser_theme_provider.cc (revision 28977)
+++ chrome/browser/browser_theme_provider.cc (working copy)
@@ -470,6 +470,13 @@
extension->path());
SetColorData(extension->GetThemeColors());
SetTintData(extension->GetThemeTints());
+
+ // Drop out to default theme if the theme data is empty.
+ if (images_.empty() && colors_.empty() && tints_.empty()) {
+ UseDefaultTheme();
+ return;
+ }
+
SetDisplayPropertyData(extension->GetThemeDisplayProperties());
raw_data_.clear();
« no previous file with comments | « chrome/app/nibs/Preferences.xib ('k') | chrome/browser/cocoa/preferences_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698