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 c92046e5032dbcf99097557a96ab0dd67fe8208a..96c0817776b01211e86f009f386d867294875a92 100644 |
--- a/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc |
+++ b/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc |
@@ -7,11 +7,13 @@ |
#include <string> |
#include <vector> |
+#include "base/path_service.h" |
#include "base/threading/sequenced_worker_pool.h" |
#include "base/version.h" |
#include "components/component_updater/configurator_impl.h" |
#include "components/update_client/component_patcher_operation.h" |
#include "ios/chrome/browser/application_context.h" |
+#include "ios/chrome/browser/chrome_paths.h" |
#include "ios/chrome/browser/google/google_brand.h" |
#include "ios/chrome/common/channel_info.h" |
#include "ios/web/public/web_thread.h" |
@@ -48,6 +50,7 @@ class IOSConfigurator : public update_client::Configurator { |
bool UseCupSigning() const override; |
scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
const override; |
+ base::FilePath GetMetadataPath() const override; |
private: |
friend class base::RefCountedThreadSafe<IOSConfigurator>; |
@@ -152,6 +155,13 @@ IOSConfigurator::GetSequencedTaskRunner() const { |
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); |
} |
+base::FilePath IOSConfigurator::GetMetadataPath() const { |
+ base::FilePath result; |
+ if (PathService::Get(ios::DIR_USER_DATA, &result)) |
+ return result.AppendASCII("component_metadata.json"); |
+ return base::FilePath(); |
+} |
+ |
} // namespace |
scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( |