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

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

Issue 8341094: Changed change processors to use ScopedStopObserving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unnecessary call to StartObserving(). Created 9 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
Index: chrome/browser/sync/glue/theme_change_processor.cc
diff --git a/chrome/browser/sync/glue/theme_change_processor.cc b/chrome/browser/sync/glue/theme_change_processor.cc
index c32b26b5ab86286f7dbd074e2c7c865a8e06776b..6cd9341fd22c5d475e3f9e89acea5c390fc138a1 100644
--- a/chrome/browser/sync/glue/theme_change_processor.cc
+++ b/chrome/browser/sync/glue/theme_change_processor.cc
@@ -106,9 +106,8 @@ void ThemeChangeProcessor::ApplyChangesFromSyncModel(
DCHECK(profile_);
theme_specifics = node.GetThemeSpecifics();
}
- StopObserving();
+ ScopedStopObserving<ThemeChangeProcessor> stop_observing(this);
SetCurrentThemeFromThemeSpecificsIfNecessary(theme_specifics, profile_);
- StartObserving();
}
void ThemeChangeProcessor::StartImpl(Profile* profile) {
« no previous file with comments | « chrome/browser/sync/glue/theme_change_processor.h ('k') | chrome/browser/sync/glue/typed_url_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698