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

Unified Diff: chrome/browser/themes/theme_syncable_service.cc

Issue 19462009: [DRAFT] Allow a user to revert to their previous theme without closing infobar (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/themes/theme_syncable_service.cc
diff --git a/chrome/browser/themes/theme_syncable_service.cc b/chrome/browser/themes/theme_syncable_service.cc
index 3389443e055fc321051edd8da9810b22d886243e..61c656f507da59c96d25699ff2a6525777e5a578 100644
--- a/chrome/browser/themes/theme_syncable_service.cc
+++ b/chrome/browser/themes/theme_syncable_service.cc
@@ -218,12 +218,8 @@ void ThemeSyncableService::SetCurrentThemeFromThemeSpecifics(
DVLOG(1) << "Extension " << id << " is not a theme; aborting";
return;
}
- if (!extensions_service->IsExtensionEnabled(id)) {
pkotwicz 2013/07/25 01:25:29 I was mostly worried about interference with exter
- DVLOG(1) << "Theme " << id << " is not enabled; aborting";
- return;
- }
- // An enabled theme extension with the given id was found, so
- // just set the current theme to it.
+ // A theme extension with the given id was found, so just set the current
+ // theme to it.
theme_service_->SetTheme(extension);
} else {
// No extension with this id exists -- we must install it; we do
« chrome/browser/themes/theme_service.cc ('K') | « chrome/browser/themes/theme_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698