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

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

Issue 9453036: [Sync] Remove --create-mobile-bookmarks-folder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address yaron's comments Created 8 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
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 c5554ea4c5eee424217e954a9052e4063e8dd3e1..c3a8714878218e3a4fb4c5a9b56a23c63057f86a 100644
--- a/chrome/browser/sync/glue/bookmark_model_associator.h
+++ b/chrome/browser/sync/glue/bookmark_model_associator.h
@@ -36,10 +36,13 @@ class BookmarkModelAssociator
: public PerDataTypeAssociatorInterface<BookmarkNode, int64> {
public:
static syncable::ModelType model_type() { return syncable::BOOKMARKS; }
+ // |create_mobile_bookmarks_folder| controls whether or not we try
+ // to create the mobile bookmarks top-level folder.
BookmarkModelAssociator(
BookmarkModel* bookmark_model,
sync_api::UserShare* user_share,
- DataTypeErrorHandler* unrecoverable_error_handler);
+ DataTypeErrorHandler* unrecoverable_error_handler,
+ bool create_mobile_bookmarks_folder);
virtual ~BookmarkModelAssociator();
// Updates the visibility of the permanents node in the BookmarkModel.
@@ -130,6 +133,7 @@ class BookmarkModelAssociator
BookmarkModel* bookmark_model_;
sync_api::UserShare* user_share_;
DataTypeErrorHandler* unrecoverable_error_handler_;
+ const bool create_mobile_bookmarks_folder_;
BookmarkIdToSyncIdMap id_map_;
SyncIdToBookmarkNodeMap id_map_inverse_;
// Stores sync ids for dirty associations.

Powered by Google App Engine
This is Rietveld 408576698