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

Unified Diff: chrome/browser/component_updater/chrome_component_updater_configurator.cc

Issue 1823273002: Send the value of google_brand::GetBrand in component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor unit test improvement. Created 4 years, 9 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/extensions/updater/chrome_update_client_config.h » ('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 fcc40d52a96f1323ac8f6a5f75f763dc16480d8a..f915a8cafc439a686b74483651bfa154eb85ad6f 100644
--- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
@@ -14,6 +14,7 @@
#include "base/win/win_util.h"
#endif
#include "chrome/browser/component_updater/component_patcher_operation_out_of_process.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"
#if defined(OS_WIN)
@@ -41,6 +42,7 @@ class ChromeConfigurator : public update_client::Configurator {
std::vector<GURL> PingUrl() const override;
base::Version GetBrowserVersion() const override;
std::string GetChannel() const override;
+ std::string GetBrand() const override;
std::string GetLang() const override;
std::string GetOSLongName() const override;
std::string ExtraRequestParams() const override;
@@ -103,6 +105,12 @@ std::string ChromeConfigurator::GetChannel() const {
return chrome::GetChannelString();
}
+std::string ChromeConfigurator::GetBrand() const {
+ std::string brand;
+ google_brand::GetBrand(&brand);
+ return brand;
+}
+
std::string ChromeConfigurator::GetLang() const {
return ChromeUpdateQueryParamsDelegate::GetLang();
}
« no previous file with comments | « no previous file | chrome/browser/extensions/updater/chrome_update_client_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698