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

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

Issue 6375007: [Sync] Refactored ProfileSyncService and remove its backend() function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows compile failure Created 9 years, 11 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/bookmark_model_associator.h
diff --git a/chrome/browser/sync/glue/bookmark_model_associator.h b/chrome/browser/sync/glue/bookmark_model_associator.h
index 577979f51b8e07ea5b115ac46c233762c6476e5b..51cdff40c80522aa03b6327cb7a6575e658b1555 100644
--- a/chrome/browser/sync/glue/bookmark_model_associator.h
+++ b/chrome/browser/sync/glue/bookmark_model_associator.h
@@ -83,15 +83,14 @@ class BookmarkModelAssociator
// thread.
}
- // Returns sync service instance.
- ProfileSyncService* sync_service() { return sync_service_; }
-
protected:
// Stores the id of the node with the given tag in |sync_id|.
// Returns of that node was found successfully.
// Tests override this.
virtual bool GetSyncIdForTaggedNode(const std::string& tag, int64* sync_id);
+ ProfileSyncService* sync_service_;
tim (not reviewing) 2011/01/21 18:17:00 I think you should instead move the sync_service()
akalin 2011/01/21 21:21:09 Done.
+
private:
typedef std::map<int64, int64> BookmarkIdToSyncIdMap;
typedef std::map<int64, const BookmarkNode*> SyncIdToBookmarkNodeMap;
@@ -123,7 +122,6 @@ class BookmarkModelAssociator
bool NodesMatch(const BookmarkNode* bookmark,
const sync_api::BaseNode* sync_node) const;
- ProfileSyncService* sync_service_;
UnrecoverableErrorHandler* persist_ids_error_handler_;
BookmarkIdToSyncIdMap id_map_;
SyncIdToBookmarkNodeMap id_map_inverse_;

Powered by Google App Engine
This is Rietveld 408576698