Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: chrome/browser/extensions/updater/chrome_update_client_config.cc

Issue 2873533002: Prepare to abstract PersistedData by making it part of the configurator.
Patch Set: Rename pref_ to pref_service_. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/updater/chrome_update_client_config.cc
diff --git a/chrome/browser/extensions/updater/chrome_update_client_config.cc b/chrome/browser/extensions/updater/chrome_update_client_config.cc
index 67d6357e030a59967596f7f8dbc09cb29fcd7d10..ef0be4c41604542812f98e7d2b2e4102c687ae69 100644
--- a/chrome/browser/extensions/updater/chrome_update_client_config.cc
+++ b/chrome/browser/extensions/updater/chrome_update_client_config.cc
@@ -2,15 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/extensions/updater/chrome_update_client_config.h"
+
#include "base/command_line.h"
+#include "base/memory/ptr_util.h"
#include "base/version.h"
#include "chrome/browser/component_updater/component_patcher_operation_out_of_process.h"
#include "chrome/browser/component_updater/component_updater_utils.h"
-#include "chrome/browser/extensions/updater/chrome_update_client_config.h"
#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 "components/prefs/pref_service.h"
+#include "components/update_client/persisted_data.h"
#include "components/update_client/update_query_params.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
@@ -110,14 +113,15 @@ bool ChromeUpdateClientConfig::EnabledCupSigning() const {
return impl_.EnabledCupSigning();
}
-PrefService* ChromeUpdateClientConfig::GetPrefService() const {
- return nullptr;
-}
-
bool ChromeUpdateClientConfig::IsPerUserInstall() const {
return component_updater::IsPerUserInstall();
}
ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {}
+std::unique_ptr<update_client::PersistedData>
+ChromeUpdateClientConfig::CreateMetadata() const {
+ return base::MakeUnique<update_client::PersistedData>(nullptr);
+}
+
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/updater/chrome_update_client_config.h ('k') | components/update_client/configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698