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

Unified Diff: ios/chrome/browser/reading_list/reading_list_model_factory.cc

Issue 2398233003: with sync (Closed)
Patch Set: done Created 4 years, 2 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: ios/chrome/browser/reading_list/reading_list_model_factory.cc
diff --git a/ios/chrome/browser/reading_list/reading_list_model_factory.cc b/ios/chrome/browser/reading_list/reading_list_model_factory.cc
index 085d4dc61b1b31c8197eef5b18809c9157cc635a..d6e45fbc6b802a410e162f50fb8f661a12b177cf 100644
--- a/ios/chrome/browser/reading_list/reading_list_model_factory.cc
+++ b/ios/chrome/browser/reading_list/reading_list_model_factory.cc
@@ -64,8 +64,10 @@ std::unique_ptr<KeyedService> ReadingListModelFactory::BuildServiceInstanceFor(
leveldb_proto::ProtoDatabaseImpl<reading_list::ReadingListLocal>>(
background_task_runner);
- std::unique_ptr<ReadingListStore> store =
- base::MakeUnique<ReadingListStore>(std::move(db), database_dir);
+ std::unique_ptr<ReadingListStore> store = base::MakeUnique<ReadingListStore>(
+ std::move(db), database_dir,
+ base::Bind(&syncer::ModelTypeStore::CreateStore, syncer::READING_LIST,
+ database_dir.AsUTF8Unsafe(), background_task_runner));
ios::ChromeBrowserState* chrome_browser_state =
ios::ChromeBrowserState::FromBrowserState(context);
« no previous file with comments | « ios/chrome/browser/reading_list/reading_list_model.h ('k') | ios/chrome/browser/reading_list/reading_list_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698