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

Unified Diff: ios/chrome/browser/component_updater/ios_component_updater_configurator.cc

Issue 2340113002: Inject the prodid for the extensions and component updaters. (Closed)
Patch Set: Remove "chromium" as a possible value in comment. Created 4 years, 3 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
« no previous file with comments | « components/update_client/utils_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b4070bd7d8db05cf83ef08a2a296ae9f2c3c5e79..b36979a0f94a7ee074d9b4ddddeea91d7cef7774 100644
--- a/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc
+++ b/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc
@@ -11,6 +11,7 @@
#include "base/version.h"
#include "components/component_updater/configurator_impl.h"
#include "components/update_client/component_patcher_operation.h"
+#include "components/update_client/update_query_params.h"
#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/google/google_brand.h"
#include "ios/chrome/common/channel_info.h"
@@ -33,6 +34,7 @@ class IOSConfigurator : public update_client::Configurator {
int UpdateDelay() const override;
std::vector<GURL> UpdateUrl() const override;
std::vector<GURL> PingUrl() const override;
+ std::string GetProdId() const override;
base::Version GetBrowserVersion() const override;
std::string GetChannel() const override;
std::string GetBrand() const override;
@@ -95,6 +97,11 @@ std::vector<GURL> IOSConfigurator::PingUrl() const {
return configurator_impl_.PingUrl();
}
+std::string IOSConfigurator::GetProdId() const {
+ return update_client::UpdateQueryParams::GetProdIdString(
+ update_client::UpdateQueryParams::ProdId::CHROME);
+}
+
base::Version IOSConfigurator::GetBrowserVersion() const {
return configurator_impl_.GetBrowserVersion();
}
« no previous file with comments | « components/update_client/utils_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698