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

Unified Diff: chrome/browser/omaha_query_params/omaha_query_params.cc

Issue 153273002: Include the language (locale) info in the update ping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move "lang" param to OmahaQueryParams Created 6 years, 10 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: chrome/browser/omaha_query_params/omaha_query_params.cc
diff --git a/chrome/common/omaha_query_params/omaha_query_params.cc b/chrome/browser/omaha_query_params/omaha_query_params.cc
similarity index 89%
rename from chrome/common/omaha_query_params/omaha_query_params.cc
rename to chrome/browser/omaha_query_params/omaha_query_params.cc
index f68c9be26fce4a9db3288d8451425bca2fdeb62f..3ef8f65b8b7b90361caea108cce1b3472634c842 100644
--- a/chrome/common/omaha_query_params/omaha_query_params.cc
+++ b/chrome/browser/omaha_query_params/omaha_query_params.cc
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/common/omaha_query_params/omaha_query_params.h"
+#include "chrome/browser/omaha_query_params/omaha_query_params.h"
#include "base/compiler_specific.h"
#include "base/strings/stringprintf.h"
#include "base/win/windows_version.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/common/chrome_version_info.h"
namespace {
@@ -65,13 +66,15 @@ namespace chrome {
// static
std::string OmahaQueryParams::Get(ProdId prod) {
return base::StringPrintf(
- "os=%s&arch=%s&nacl_arch=%s&prod=%s&prodchannel=%s&prodversion=%s",
+ "os=%s&arch=%s&nacl_arch=%s&prod=%s&prodchannel=%s"
+ "&prodversion=%s&lang=%s",
kOs,
kArch,
getNaclArch(),
GetProdIdString(prod),
GetChannelString(),
- chrome::VersionInfo().Version().c_str());
+ chrome::VersionInfo().Version().c_str(),
+ GetLang());
}
// static
@@ -146,4 +149,8 @@ const char* OmahaQueryParams::GetChannelString() {
return kUnknown;
}
+const char* OmahaQueryParams::GetLang() {
+ return g_browser_process->GetApplicationLocale().c_str();
+}
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698