| Index: chrome/browser/component_updater/chrome_component_updater_configurator.cc
|
| diff --git a/chrome/browser/component_updater/chrome_component_updater_configurator.cc b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
|
| index 97e99e71a3045c27056573ceeca06d0449e41e9f..1fc52dccd518a3e7fbacf89e9c6ee50e96aab352 100644
|
| --- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc
|
| +++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
|
| @@ -7,6 +7,8 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "base/files/file_path.h"
|
| +#include "base/path_service.h"
|
| #include "base/strings/sys_string_conversions.h"
|
| #include "base/threading/sequenced_worker_pool.h"
|
| #include "base/version.h"
|
| @@ -17,6 +19,7 @@
|
| #include "chrome/browser/google/google_brand.h"
|
| #include "chrome/browser/update_client/chrome_update_query_params_delegate.h"
|
| #include "chrome/common/channel_info.h"
|
| +#include "chrome/common/chrome_paths.h"
|
| #if defined(OS_WIN)
|
| #include "chrome/installer/util/google_update_settings.h"
|
| #endif
|
| @@ -55,6 +58,7 @@ class ChromeConfigurator : 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<ChromeConfigurator>;
|
| @@ -172,6 +176,13 @@ ChromeConfigurator::GetSequencedTaskRunner() const {
|
| base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN);
|
| }
|
|
|
| +base::FilePath ChromeConfigurator::GetMetadataPath() const {
|
| + base::FilePath result;
|
| + if (PathService::Get(chrome::DIR_USER_DATA, &result))
|
| + return result.AppendASCII("component_metadata.json");
|
| + return base::FilePath();
|
| +}
|
| +
|
| } // namespace
|
|
|
| scoped_refptr<update_client::Configurator>
|
|
|