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

Unified Diff: chrome/browser/component_updater/chrome_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 | « no previous file | chrome/browser/component_updater/chrome_component_updater_configurator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 570437c2c406c25d96a5c9c76672a44cfa7667d2..dbdccf3f4361c29c675605565fc29f943848d2d8 100644
--- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
@@ -25,6 +25,7 @@
#include "components/component_updater/configurator_impl.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
+#include "components/update_client/update_query_params.h"
#include "content/public/browser/browser_thread.h"
namespace component_updater {
@@ -45,6 +46,7 @@ class ChromeConfigurator : 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;
@@ -112,6 +114,11 @@ std::vector<GURL> ChromeConfigurator::PingUrl() const {
return configurator_impl_.PingUrl();
}
+std::string ChromeConfigurator::GetProdId() const {
+ return update_client::UpdateQueryParams::GetProdIdString(
+ update_client::UpdateQueryParams::ProdId::CHROME);
+}
+
base::Version ChromeConfigurator::GetBrowserVersion() const {
return configurator_impl_.GetBrowserVersion();
}
« no previous file with comments | « no previous file | chrome/browser/component_updater/chrome_component_updater_configurator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698