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

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

Issue 2764533002: Reading List iOS: Use external clock in ReadingListEntry. (Closed)
Patch Set: jitter Created 3 years, 9 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 5d115aafeac63a669d0019919641b25fee145f1d..c2256906b1657f52c44d52545943f6948f07f6b2 100644
--- a/ios/chrome/browser/reading_list/reading_list_model_factory.cc
+++ b/ios/chrome/browser/reading_list/reading_list_model_factory.cc
@@ -9,6 +9,7 @@
#include "base/files/file_path.h"
#include "base/memory/ptr_util.h"
#include "base/memory/singleton.h"
+#include "base/time/default_clock.h"
#include "components/browser_sync/profile_sync_service.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
#include "components/pref_registry/pref_registry_syncable.h"
@@ -77,8 +78,9 @@ std::unique_ptr<KeyedService> ReadingListModelFactory::BuildServiceInstanceFor(
GetChannel())));
std::unique_ptr<KeyedService> reading_list_model =
- base::MakeUnique<ReadingListModelImpl>(std::move(store),
- chrome_browser_state->GetPrefs());
+ base::MakeUnique<ReadingListModelImpl>(
+ std::move(store), chrome_browser_state->GetPrefs(),
+ base::MakeUnique<base::DefaultClock>());
return reading_list_model;
}

Powered by Google App Engine
This is Rietveld 408576698