Make navigator.language return the same value as CefSettings.locale (issue #429).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@382 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-11-17 18:52:16 +00:00
parent 268675fdbe
commit e7e289a7c6
5 changed files with 16 additions and 6 deletions

View File

@@ -14,6 +14,7 @@
#include "browser_devtools_callargs.h"
#include "browser_devtools_client.h"
#include "browser_impl.h"
#include "cef_context.h"
#include "base/bind.h"
#include "base/command_line.h"
@@ -32,7 +33,7 @@ BrowserDevToolsClient::BrowserDevToolsClient(CefBrowserImpl* browser,
dev_tools_agent_(agent),
web_view_(browser->UIT_GetWebView()) {
web_tools_frontend_.reset(WebDevToolsFrontend::create(web_view_, this,
WebString::fromUTF8("en-US")));
WebString::fromUTF8(_Context->locale())));
dev_tools_agent_->attach(this);
}