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

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

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.h
diff --git a/chrome/common/omaha_query_params/omaha_query_params.h b/chrome/browser/omaha_query_params/omaha_query_params.h
similarity index 81%
rename from chrome/common/omaha_query_params/omaha_query_params.h
rename to chrome/browser/omaha_query_params/omaha_query_params.h
index 145d9ee17568d8cbd2aee52849a1f9bc6c0a29bf..9a9feb55e3bda138299077b1f8d750be3e44eaff 100644
--- a/chrome/common/omaha_query_params/omaha_query_params.h
+++ b/chrome/browser/omaha_query_params/omaha_query_params.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_COMMON_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_
-#define CHROME_COMMON_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_
+#ifndef CHROME_BROWSER_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_
+#define CHROME_BROWSER_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_
#include <string>
@@ -46,10 +46,14 @@ class OmahaQueryParams {
// "stable".
static const char* GetChannelString();
+ // Returns the language for the present locale. Possible return values are
+ // standard tags for languages, such as "en", "en-US", "de", "fr", "af", etc.
+ static const char* GetLang();
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(OmahaQueryParams);
};
} // namespace chrome
-#endif // CHROME_COMMON_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_
+#endif // CHROME_BROWSER_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_

Powered by Google App Engine
This is Rietveld 408576698