Index: chrome/browser/extensions/theme_installed_infobar_delegate.cc |
diff --git a/chrome/browser/extensions/theme_installed_infobar_delegate.cc b/chrome/browser/extensions/theme_installed_infobar_delegate.cc |
index 9451f233adbe03ce0ca465557b43ea9285b2d5d9..57d9b8d2808123c9a4f064b72fe17c5736c95ef4 100644 |
--- a/chrome/browser/extensions/theme_installed_infobar_delegate.cc |
+++ b/chrome/browser/extensions/theme_installed_infobar_delegate.cc |
@@ -145,7 +145,9 @@ bool ThemeInstalledInfoBarDelegate::Cancel() { |
const extensions::Extension* previous_theme = |
extension_service_->GetExtensionById(previous_theme_id_, true); |
if (previous_theme) { |
- theme_service_->SetTheme(previous_theme); |
+ theme_service_->RevertToTheme(previous_theme); |
+ // TODO(estade): while we're waiting to close, it would be nice to |
+ // indicate that the theme is busy reverting. |
return false; // The theme change will close us. |
} |
} |