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

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

Issue 12084058: sync/glue: Convert BookmarkDataTypeController to BaseBookmarkModelObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: BookmarkModelPolicy Created 7 years, 10 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/bookmark_data_type_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/bookmark_data_type_controller.h
diff --git a/chrome/browser/sync/glue/bookmark_data_type_controller.h b/chrome/browser/sync/glue/bookmark_data_type_controller.h
index 4456e399ed453a3bbaddc98b5eace61a96f9d95a..8879da9c6c154658fe9c8b7f9307c459d8b3b204 100644
--- a/chrome/browser/sync/glue/bookmark_data_type_controller.h
+++ b/chrome/browser/sync/glue/bookmark_data_type_controller.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/compiler_specific.h"
+#include "chrome/browser/bookmarks/base_bookmark_model_observer.h"
#include "chrome/browser/sync/glue/frontend_data_type_controller.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -16,12 +17,12 @@ namespace browser_sync {
// A class that manages the startup and shutdown of bookmark sync.
class BookmarkDataTypeController : public FrontendDataTypeController,
- public content::NotificationObserver {
+ public content::NotificationObserver,
+ public BaseBookmarkModelObserver {
public:
- BookmarkDataTypeController(
- ProfileSyncComponentsFactory* profile_sync_factory,
- Profile* profile,
- ProfileSyncService* sync_service);
+ BookmarkDataTypeController(ProfileSyncComponentsFactory* profile_sync_factory,
+ Profile* profile,
+ ProfileSyncService* sync_service);
// FrontendDataTypeController interface.
virtual syncer::ModelType type() const OVERRIDE;
@@ -39,6 +40,10 @@ class BookmarkDataTypeController : public FrontendDataTypeController,
virtual void CleanUpState() OVERRIDE;
virtual void CreateSyncComponents() OVERRIDE;
+ // BaseBookmarkModelObserver interface.
+ virtual void BookmarkModelChanged() OVERRIDE;
+ virtual void Loaded(BookmarkModel* model, bool ids_reassigned) OVERRIDE;
+
// Helper that returns true iff both the bookmark model and the history
// service have finished loading.
bool DependentsLoaded();
« no previous file with comments | « no previous file | chrome/browser/sync/glue/bookmark_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698