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

Unified Diff: components/update_client/update_query_params.cc

Issue 2768573002: Send traffic-management headers from extension updater. (Closed)
Patch Set: Change the code according to mek's comments. Created 3 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
Index: components/update_client/update_query_params.cc
diff --git a/components/update_client/update_query_params.cc b/components/update_client/update_query_params.cc
index 5cd745b1198d7ae0ad408c0407b757a69e13642c..5a81a94b775bf071503ca9ec977f50c8ebcb83d2 100644
--- a/components/update_client/update_query_params.cc
+++ b/components/update_client/update_query_params.cc
@@ -8,6 +8,7 @@
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "components/update_client/update_query_params_delegate.h"
+#include "components/version_info/version_info.h"
#if defined(OS_WIN)
#include "base/win/windows_version.h"
@@ -130,6 +131,11 @@ const char* UpdateQueryParams::GetNaclArch() {
}
// static
+std::string UpdateQueryParams::GetProdVersion() {
+ return version_info::GetVersionNumber();
+}
+
+// static
void UpdateQueryParams::SetDelegate(UpdateQueryParamsDelegate* delegate) {
DCHECK(!g_delegate || !delegate || (delegate == g_delegate));
g_delegate = delegate;
« no previous file with comments | « components/update_client/update_query_params.h ('k') | components/update_client/update_query_params_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698