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

Unified Diff: chrome/browser/resources/google_now/background.js

Issue 172733002: Add Locale Request Support to Chrome Now (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/google_now/background.js
diff --git a/chrome/browser/resources/google_now/background.js b/chrome/browser/resources/google_now/background.js
index fc487cf10cf2ff0f18fc88031dc66cefdd52639f..032df708ea2a3b9798e31f82b1d8728b629a41bc 100644
--- a/chrome/browser/resources/google_now/background.js
+++ b/chrome/browser/resources/google_now/background.js
@@ -582,6 +582,8 @@ function requestNotificationGroups(groupNames) {
requestParameters += ('&requestTypes=' + groupName);
});
+ requestParameters += '&uiLocale=' + navigator.language;
rgustafson 2014/02/19 19:18:14 https://developer.mozilla.org/en-US/docs/Web/API/N
robliao 2014/02/19 19:26:47 Works for me. accept-language:en-US,en;q=0.8,de;q
rgustafson 2014/02/19 19:39:16 Do you know the actual standard that these strings
robliao 2014/02/19 19:49:19 A bit more context. The reason why this works is b
+
console.log('requestNotificationGroups: request=' + requestParameters);
var request = buildServerRequest('GET', 'notifications' + requestParameters);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698