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

Unified Diff: components/update_client/update_engine.cc

Issue 2873533002: Prepare to abstract PersistedData by making it part of the configurator.
Patch Set: Really fix a compile error in iOS component configurator this time. Created 3 years, 7 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: components/update_client/update_engine.cc
diff --git a/components/update_client/update_engine.cc b/components/update_client/update_engine.cc
index f56793f78bd9a1c99cf5737d061a52213ff89418..99864045585e012f164ad2d410b387a4a545c39d 100644
--- a/components/update_client/update_engine.cc
+++ b/components/update_client/update_engine.cc
@@ -58,7 +58,6 @@ UpdateEngine::UpdateEngine(
update_checker_factory_(update_checker_factory),
crx_downloader_factory_(crx_downloader_factory),
ping_manager_(ping_manager),
- metadata_(new PersistedData(config->GetPrefService())),
notify_observers_callback_(notify_observers_callback) {}
UpdateEngine::~UpdateEngine() {
@@ -152,8 +151,7 @@ void UpdateEngine::DoUpdateCheck(const UpdateContextIterator& it) {
auto& update_context = *it;
DCHECK(update_context);
- update_context->update_checker =
- update_checker_factory_(config_, metadata_.get());
+ update_context->update_checker = update_checker_factory_(config_);
update_context->update_checker->CheckForUpdates(
update_context->ids, update_context->components,

Powered by Google App Engine
This is Rietveld 408576698