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

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

Issue 10824161: [Sync] Avoid unregistering object IDs on shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove now-unneeded param Created 8 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/sync/glue/bridged_sync_notifier.cc
diff --git a/chrome/browser/sync/glue/bridged_sync_notifier.cc b/chrome/browser/sync/glue/bridged_sync_notifier.cc
index 5e3f669937da088a6d12e30bb9938886a34af1fe..f50c80ce74cb734129ea9dd77b2ce258b43bd28d 100644
--- a/chrome/browser/sync/glue/bridged_sync_notifier.cc
+++ b/chrome/browser/sync/glue/bridged_sync_notifier.cc
@@ -18,12 +18,19 @@ BridgedSyncNotifier::BridgedSyncNotifier(
BridgedSyncNotifier::~BridgedSyncNotifier() {
}
+void BridgedSyncNotifier::SetHandler(const std::string& handler_name,
+ syncer::SyncNotifierObserver* handler) {
+ if (delegate_.get())
+ delegate_->SetHandler(handler_name, handler);
+ bridge_->SetHandler(handler_name, handler);
+}
+
void BridgedSyncNotifier::UpdateRegisteredIds(
- syncer::SyncNotifierObserver* handler,
+ const std::string& handler_name,
const syncer::ObjectIdSet& ids) {
if (delegate_.get())
- delegate_->UpdateRegisteredIds(handler, ids);
- bridge_->UpdateRegisteredIds(handler, ids);
+ delegate_->UpdateRegisteredIds(handler_name, ids);
+ bridge_->UpdateRegisteredIds(handler_name, ids);
}
void BridgedSyncNotifier::SetUniqueId(const std::string& unique_id) {

Powered by Google App Engine
This is Rietveld 408576698