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

Unified Diff: chrome/browser/sync/glue/chrome_sync_notification_bridge.h

Issue 10817023: [Sync] Pass the correct set of enabled types to the sync notifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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
« no previous file with comments | « no previous file | chrome/browser/sync/glue/chrome_sync_notification_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/chrome_sync_notification_bridge.h
diff --git a/chrome/browser/sync/glue/chrome_sync_notification_bridge.h b/chrome/browser/sync/glue/chrome_sync_notification_bridge.h
index 938d91e2dda46aaa291e4f8392e68a7eefcfd90e..bda23b4fde4b5c614ff588aecb4c7eb52480a7fd 100644
--- a/chrome/browser/sync/glue/chrome_sync_notification_bridge.h
+++ b/chrome/browser/sync/glue/chrome_sync_notification_bridge.h
@@ -35,10 +35,9 @@ class ChromeSyncNotificationBridge : public content::NotificationObserver {
const scoped_refptr<base::SequencedTaskRunner>& sync_task_runner);
virtual ~ChromeSyncNotificationBridge();
- // Must be called on the UI thread.
- void UpdateEnabledTypes(const syncer::ModelTypeSet enabled_types);
-
// Must be called on the sync task runner.
+ void UpdateEnabledTypes(syncer::ModelTypeSet enabled_types);
+ // Marked virtual for tests.
virtual void AddObserver(syncer::SyncNotifierObserver* observer);
virtual void RemoveObserver(syncer::SyncNotifierObserver* observer);
@@ -58,7 +57,6 @@ class ChromeSyncNotificationBridge : public content::NotificationObserver {
// Used only on the UI thread.
content::NotificationRegistrar registrar_;
- syncer::ModelTypeSet enabled_types_;
};
} // namespace browser_sync
« no previous file with comments | « no previous file | chrome/browser/sync/glue/chrome_sync_notification_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698