Index: components/update_client/update_engine.cc |
diff --git a/components/update_client/update_engine.cc b/components/update_client/update_engine.cc |
index 20f9a6acf1e28f30be484fe7548aff4527dc37f9..15a15b421737df7e720472eb932aa092e8470a91 100644 |
--- a/components/update_client/update_engine.cc |
+++ b/components/update_client/update_engine.cc |
@@ -13,6 +13,7 @@ |
#include "components/update_client/action_update_check.h" |
#include "components/update_client/configurator.h" |
#include "components/update_client/crx_update_item.h" |
+#include "components/update_client/persisted_data.h" |
#include "components/update_client/update_checker.h" |
namespace update_client { |
@@ -54,6 +55,9 @@ UpdateEngine::UpdateEngine( |
update_checker_factory_(update_checker_factory), |
crx_downloader_factory_(crx_downloader_factory), |
ping_manager_(ping_manager), |
+ metadata_( |
+ new PersistedData(config->GetMetadataPath(), |
+ config->GetSequencedTaskRunner())), |
notify_observers_callback_(notify_observers_callback) { |
} |
@@ -98,7 +102,7 @@ void UpdateEngine::Update( |
CrxUpdateItem update_item; |
scoped_ptr<ActionUpdateCheck> update_check_action(new ActionUpdateCheck( |
- (*update_context->update_checker_factory)(config_), |
+ (*update_context->update_checker_factory)(config_, metadata_), |
config_->GetBrowserVersion(), config_->ExtraRequestParams())); |
update_context->current_action.reset(update_check_action.release()); |