Chromium Code Reviews

Unified Diff: chrome/browser/sync/glue/theme_change_processor.cc

Issue 5968009: Change extension unload notification to indicate updates.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/sync/glue/theme_change_processor.cc
===================================================================
--- chrome/browser/sync/glue/theme_change_processor.cc (revision 69996)
+++ chrome/browser/sync/glue/theme_change_processor.cc (working copy)
@@ -39,7 +39,12 @@
const NotificationDetails& details) {
DCHECK(running());
DCHECK(profile_);
- const Extension* extension = Details<const Extension>(details).ptr();
+ const Extension* extension = NULL;
+ if (type == NotificationType::EXTENSION_UNLOADED) {
+ extension = Details<UnloadedExtensionInfo>(details)->extension;
+ } else {
+ extension = Details<const Extension>(details).ptr();
+ }
std::string current_or_future_theme_id =
profile_->GetThemeProvider()->GetThemeID();
const Extension* current_theme = profile_->GetTheme();

Powered by Google App Engine