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..a45625075a9d15d209e2ee39e37daa105c4c5718 100644 |
--- a/components/update_client/update_engine.cc |
+++ b/components/update_client/update_engine.cc |
@@ -11,6 +11,7 @@ |
#include "base/thread_task_runner_handle.h" |
#include "base/time/time.h" |
#include "components/update_client/action_update_check.h" |
+#include "components/update_client/component_metadata.h" |
#include "components/update_client/configurator.h" |
#include "components/update_client/crx_update_item.h" |
#include "components/update_client/update_checker.h" |
@@ -54,6 +55,9 @@ UpdateEngine::UpdateEngine( |
update_checker_factory_(update_checker_factory), |
crx_downloader_factory_(crx_downloader_factory), |
ping_manager_(ping_manager), |
+ metadata_( |
+ new ComponentMetadata(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()); |