Index: ios/chrome/browser/component_updater/ios_component_updater_configurator.cc |
diff --git a/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc b/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc |
index a441b5f58667fdbeaf43b7ea7a1014dad3fc1320..7222a08ebd978d8bc4338c5585fb34714c494b39 100644 |
--- a/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc |
+++ b/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc |
@@ -7,10 +7,13 @@ |
#include <string> |
#include <vector> |
+#include "base/memory/ptr_util.h" |
#include "base/task_scheduler/post_task.h" |
+#include "base/threading/sequenced_worker_pool.h" |
#include "base/version.h" |
#include "components/component_updater/configurator_impl.h" |
-#include "components/update_client/out_of_process_patcher.h" |
+#include "components/update_client/component_patcher_operation.h" |
+#include "components/update_client/persisted_data.h" |
#include "components/update_client/update_query_params.h" |
#include "ios/chrome/browser/application_context.h" |
#include "ios/chrome/browser/google/google_brand.h" |
@@ -49,8 +52,8 @@ class IOSConfigurator : public update_client::Configurator { |
bool EnabledCupSigning() const override; |
scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
const override; |
- PrefService* GetPrefService() const override; |
bool IsPerUserInstall() const override; |
+ std::unique_ptr<update_client::PersistedData> CreateMetadata() const override; |
private: |
friend class base::RefCountedThreadSafe<IOSConfigurator>; |
@@ -159,14 +162,16 @@ IOSConfigurator::GetSequencedTaskRunner() const { |
base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN}); |
} |
-PrefService* IOSConfigurator::GetPrefService() const { |
- return GetApplicationContext()->GetLocalState(); |
-} |
- |
bool IOSConfigurator::IsPerUserInstall() const { |
return true; |
} |
+std::unique_ptr<update_client::PersistedData> IOSConfigurator::CreateMetadata() |
+ const { |
+ return base::MakeUnique<update_client::PersistedData>( |
+ GetApplicationContext()->GetLocalState()); |
+} |
+ |
} // namespace |
scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( |