diff options
Diffstat (limited to 'chrome/browser/sync/glue')
-rw-r--r-- | chrome/browser/sync/glue/session_model_associator.cc | 6 | ||||
-rw-r--r-- | chrome/browser/sync/glue/session_model_associator.h | 6 | ||||
-rw-r--r-- | chrome/browser/sync/glue/ui_model_worker.cc | 4 | ||||
-rw-r--r-- | chrome/browser/sync/glue/ui_model_worker.h | 2 |
4 files changed, 12 insertions, 6 deletions
diff --git a/chrome/browser/sync/glue/session_model_associator.cc b/chrome/browser/sync/glue/session_model_associator.cc index 1efe37a..5ec89be 100644 --- a/chrome/browser/sync/glue/session_model_associator.cc +++ b/chrome/browser/sync/glue/session_model_associator.cc @@ -108,6 +108,12 @@ int64 SessionModelAssociator::GetSyncIdFromChromeId(const std::string& id) { return node.GetId(); } +bool SessionModelAssociator::InitSyncNodeFromChromeId( + const std::string& id, + sync_api::BaseNode* sync_node) { + return false; +} + bool SessionModelAssociator::SyncModelHasUserCreatedNodes(bool* has_nodes) { DCHECK(CalledOnValidThread()); CHECK(has_nodes); diff --git a/chrome/browser/sync/glue/session_model_associator.h b/chrome/browser/sync/glue/session_model_associator.h index b10d290..502af18 100644 --- a/chrome/browser/sync/glue/session_model_associator.h +++ b/chrome/browser/sync/glue/session_model_associator.h @@ -52,10 +52,8 @@ class SessionModelAssociator : public PerDataTypeAssociatorInterface< explicit SessionModelAssociator(ProfileSyncService* sync_service); virtual ~SessionModelAssociator(); - // AssociatorInterface and PerDataTypeAssociator Interface implementation. virtual void AbortAssociation() { - return; // No implementation needed, this associator runs on the main // thread. } @@ -100,9 +98,7 @@ class SessionModelAssociator : public PerDataTypeAssociatorInterface< // Returns false if no sync node was found for the given chrome node id or // if the initialization of sync node fails. virtual bool InitSyncNodeFromChromeId(const std::string& id, - sync_api::BaseNode* sync_node) { - return false; - } + sync_api::BaseNode* sync_node); // The has_nodes out parameter is set to true if the sync model has // nodes other than the permanent tagged nodes. The method may diff --git a/chrome/browser/sync/glue/ui_model_worker.cc b/chrome/browser/sync/glue/ui_model_worker.cc index 86dbf44..24622ae 100644 --- a/chrome/browser/sync/glue/ui_model_worker.cc +++ b/chrome/browser/sync/glue/ui_model_worker.cc @@ -89,6 +89,10 @@ void UIModelWorker::Stop() { state_ = STOPPED; } +ModelSafeGroup UIModelWorker::GetModelSafeGroup() { + return GROUP_UI; +} + bool UIModelWorker::CurrentThreadIsWorkThread() { return MessageLoop::current() == ui_loop_; } diff --git a/chrome/browser/sync/glue/ui_model_worker.h b/chrome/browser/sync/glue/ui_model_worker.h index 66a2a995..f3a988b 100644 --- a/chrome/browser/sync/glue/ui_model_worker.h +++ b/chrome/browser/sync/glue/ui_model_worker.h @@ -67,7 +67,7 @@ class UIModelWorker : public browser_sync::ModelSafeWorker { // ModelSafeWorker implementation. Called on syncapi SyncerThread. virtual void DoWorkAndWaitUntilDone(Callback0::Type* work); - virtual ModelSafeGroup GetModelSafeGroup() { return GROUP_UI; } + virtual ModelSafeGroup GetModelSafeGroup(); virtual bool CurrentThreadIsWorkThread(); // Upon receiving this idempotent call, the ModelSafeWorker can |