| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/sync_bookmarks/bookmark_model_associator.h" | 5 #include "components/sync_bookmarks/bookmark_model_associator.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 return syncer_merge_result_->pre_association_version(); | 299 return syncer_merge_result_->pre_association_version(); |
| 300 } | 300 } |
| 301 | 301 |
| 302 void BookmarkModelAssociator::Context::MarkForVersionUpdate( | 302 void BookmarkModelAssociator::Context::MarkForVersionUpdate( |
| 303 const bookmarks::BookmarkNode* node) { | 303 const bookmarks::BookmarkNode* node) { |
| 304 bookmarks_for_version_update_.push_back(node); | 304 bookmarks_for_version_update_.push_back(node); |
| 305 } | 305 } |
| 306 | 306 |
| 307 BookmarkModelAssociator::BookmarkModelAssociator( | 307 BookmarkModelAssociator::BookmarkModelAssociator( |
| 308 BookmarkModel* bookmark_model, | 308 BookmarkModel* bookmark_model, |
| 309 syncer::SyncClient* sync_client, | 309 sync_driver::SyncClient* sync_client, |
| 310 syncer::UserShare* user_share, | 310 syncer::UserShare* user_share, |
| 311 std::unique_ptr<syncer::DataTypeErrorHandler> unrecoverable_error_handler, | 311 std::unique_ptr<syncer::DataTypeErrorHandler> unrecoverable_error_handler, |
| 312 bool expect_mobile_bookmarks_folder) | 312 bool expect_mobile_bookmarks_folder) |
| 313 : bookmark_model_(bookmark_model), | 313 : bookmark_model_(bookmark_model), |
| 314 sync_client_(sync_client), | 314 sync_client_(sync_client), |
| 315 user_share_(user_share), | 315 user_share_(user_share), |
| 316 unrecoverable_error_handler_(std::move(unrecoverable_error_handler)), | 316 unrecoverable_error_handler_(std::move(unrecoverable_error_handler)), |
| 317 expect_mobile_bookmarks_folder_(expect_mobile_bookmarks_folder), | 317 expect_mobile_bookmarks_folder_(expect_mobile_bookmarks_folder), |
| 318 weak_factory_(this) { | 318 weak_factory_(this) { |
| 319 DCHECK(bookmark_model_); | 319 DCHECK(bookmark_model_); |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 syncer::BOOKMARKS); | 1007 syncer::BOOKMARKS); |
| 1008 } else { | 1008 } else { |
| 1009 context->set_native_model_sync_state(BEHIND); | 1009 context->set_native_model_sync_state(BEHIND); |
| 1010 } | 1010 } |
| 1011 } | 1011 } |
| 1012 } | 1012 } |
| 1013 return syncer::SyncError(); | 1013 return syncer::SyncError(); |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 } // namespace sync_bookmarks | 1016 } // namespace sync_bookmarks |
| OLD | NEW |