Send traffic-management headers from extension updater.
This change will allow Omaha to mitigate DoS and prioritize traffic better.
BUG=647516
Review-Url: https://codereview.chromium.org/2768573002
Cr-Commit-Position: refs/heads/master@{#461466}
diff --git a/components/update_client/update_query_params.cc b/components/update_client/update_query_params.cc
index 5cd745b1..5a81a94 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 @@
}
// 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;