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

Unified Diff: chromecast/shell/browser/cast_http_user_agent_settings.cc

Issue 467043002: Adds locale strings to Chromecast build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove build/gyp_chromium Created 6 years, 4 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: chromecast/shell/browser/cast_http_user_agent_settings.cc
diff --git a/chromecast/shell/browser/cast_http_user_agent_settings.cc b/chromecast/shell/browser/cast_http_user_agent_settings.cc
index 32957a6247d0b7ae38153ee77c6596cf0edf90d1..36e5942351cfff685a057a032d02d4931f1c17b9 100644
--- a/chromecast/shell/browser/cast_http_user_agent_settings.cc
+++ b/chromecast/shell/browser/cast_http_user_agent_settings.cc
@@ -7,7 +7,9 @@
#include "base/logging.h"
#include "chromecast/shell/common/cast_content_client.h"
#include "content/public/browser/browser_thread.h"
+#include "grit/chromecast_settings.h"
#include "net/http/http_util.h"
+#include "ui/base/l10n/l10n_util.h"
namespace chromecast {
namespace shell {
@@ -21,7 +23,9 @@ CastHttpUserAgentSettings::~CastHttpUserAgentSettings() {
}
std::string CastHttpUserAgentSettings::GetAcceptLanguage() const {
- accept_language_ = net::HttpUtil::GenerateAcceptLanguageHeader("en-US");
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
+ accept_language_ = net::HttpUtil::GenerateAcceptLanguageHeader(
byungchul 2014/08/14 20:34:11 why do you save the result while you don't use it?
gunsch 2014/08/15 00:04:27 Done.
+ l10n_util::GetStringUTF8(IDS_CHROMECAST_SETTINGS_ACCEPT_LANGUAGES));
return accept_language_;
}

Powered by Google App Engine
This is Rietveld 408576698