summaryrefslogtreecommitdiffstats
path: root/chrome/browser/google_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/google_util.cc')
-rw-r--r--chrome/browser/google_util.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/google_util.cc b/chrome/browser/google_util.cc
index 9cb5e22..e8553e9 100644
--- a/chrome/browser/google_util.cc
+++ b/chrome/browser/google_util.cc
@@ -35,8 +35,12 @@ const char kLinkDoctorBaseURL[] =
"http://linkhelp.clients.google.com/tbproxy/lh/fixurl";
GURL AppendGoogleLocaleParam(const GURL& url) {
- return AppendParam(url, "hl",
- g_browser_process->GetApplicationLocale());
+ // Google does not yet recognize 'nb' for Norwegian Bokmal, but it uses
+ // 'no' for that.
+ std::string locale = g_browser_process->GetApplicationLocale();
+ if (locale == "nb")
+ locale = "no";
+ return AppendParam(url, "hl", locale);
}
GURL AppendGoogleTLDParam(const GURL& url) {