Commit 767a6fa1 authored by cfredric's avatar cfredric Committed by Commit Bot

Remove unused user_data_dir parameter in OriginTrialsComponentInstaller.

Change-Id: Ifff3526b22063147a403c33a323fd3a86d9efa74
Bug: 1126207
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398963
Auto-Submit: Chris Fredrickson <cfredric@google.com>
Reviewed-by: default avatarJoshua Pawlicki <waffles@chromium.org>
Commit-Queue: Joshua Pawlicki <waffles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805810}
parent 1ffea92d
...@@ -146,8 +146,7 @@ std::vector<std::string> OriginTrialsComponentInstallerPolicy::GetMimeTypes() ...@@ -146,8 +146,7 @@ std::vector<std::string> OriginTrialsComponentInstallerPolicy::GetMimeTypes()
return std::vector<std::string>(); return std::vector<std::string>();
} }
void RegisterOriginTrialsComponent(ComponentUpdateService* cus, void RegisterOriginTrialsComponent(ComponentUpdateService* cus) {
const base::FilePath& user_data_dir) {
auto installer = base::MakeRefCounted<ComponentInstaller>( auto installer = base::MakeRefCounted<ComponentInstaller>(
std::make_unique<OriginTrialsComponentInstallerPolicy>()); std::make_unique<OriginTrialsComponentInstallerPolicy>());
installer->Register(cus, base::OnceClosure()); installer->Register(cus, base::OnceClosure());
......
...@@ -49,8 +49,7 @@ class OriginTrialsComponentInstallerPolicy : public ComponentInstallerPolicy { ...@@ -49,8 +49,7 @@ class OriginTrialsComponentInstallerPolicy : public ComponentInstallerPolicy {
// Call once during startup to make the component update service aware of // Call once during startup to make the component update service aware of
// the origin trials update component. // the origin trials update component.
void RegisterOriginTrialsComponent(ComponentUpdateService* cus, void RegisterOriginTrialsComponent(ComponentUpdateService* cus);
const base::FilePath& user_data_dir);
} // namespace component_updater } // namespace component_updater
......
...@@ -142,8 +142,6 @@ void RegisterComponentsForUpdate(bool is_off_the_record_profile, ...@@ -142,8 +142,6 @@ void RegisterComponentsForUpdate(bool is_off_the_record_profile,
// Chrome OS: On Chrome OS, this cleanup is delayed until user login. // Chrome OS: On Chrome OS, this cleanup is delayed until user login.
component_updater::DeleteLegacySTHSet(path); component_updater::DeleteLegacySTHSet(path);
#endif #endif
RegisterOriginTrialsComponent(cus, path);
} }
RegisterSSLErrorAssistantComponent(cus); RegisterSSLErrorAssistantComponent(cus);
RegisterFileTypePoliciesComponent(cus); RegisterFileTypePoliciesComponent(cus);
...@@ -154,6 +152,7 @@ void RegisterComponentsForUpdate(bool is_off_the_record_profile, ...@@ -154,6 +152,7 @@ void RegisterComponentsForUpdate(bool is_off_the_record_profile,
component_updater::RegisterCRLSetComponent(cus); component_updater::RegisterCRLSetComponent(cus);
#endif // !defined(OS_CHROMEOS) #endif // !defined(OS_CHROMEOS)
RegisterOriginTrialsComponent(cus);
RegisterMediaEngagementPreloadComponent(cus, base::OnceClosure()); RegisterMediaEngagementPreloadComponent(cus, base::OnceClosure());
#if defined(OS_WIN) #if defined(OS_WIN)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment