| 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
|
|
|