summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/devtools_client.cc
diff options
context:
space:
mode:
authormnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 10:10:22 +0000
committermnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 10:10:22 +0000
commita88ddbb945448faf756c8820c4a74cae2f236c14 (patch)
treeca64167234e0004ed9e90137c7134bf5a43e652d /chrome/renderer/devtools_client.cc
parent7cf9303dad039b26932f7c447b6d2647919f363e (diff)
downloadchromium_src-a88ddbb945448faf756c8820c4a74cae2f236c14.zip
chromium_src-a88ddbb945448faf756c8820c4a74cae2f236c14.tar.gz
chromium_src-a88ddbb945448faf756c8820c4a74cae2f236c14.tar.bz2
DevTools l10n: generate localized strings and use them.
Reapplying r23820, this time interactive UI tests should not fail. BUG=none TEST=none Review URL: http://codereview.chromium.org/174216 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23950 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/devtools_client.cc')
-rw-r--r--chrome/renderer/devtools_client.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/renderer/devtools_client.cc b/chrome/renderer/devtools_client.cc
index d726656..e2ccb60 100644
--- a/chrome/renderer/devtools_client.cc
+++ b/chrome/renderer/devtools_client.cc
@@ -4,6 +4,8 @@
#include "chrome/renderer/devtools_client.h"
+#include "app/app_switches.h"
+#include "base/command_line.h"
#include "chrome/common/devtools_messages.h"
#include "chrome/common/render_messages.h"
#include "chrome/renderer/render_thread.h"
@@ -12,8 +14,12 @@
DevToolsClient::DevToolsClient(RenderView* view)
: render_view_(view) {
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess();
web_tools_client_.reset(
- WebDevToolsClient::Create(view->webview(), this));
+ WebDevToolsClient::Create(
+ view->webview(),
+ this,
+ WideToASCII(command_line.GetSwitchValue(switches::kLang))));
}
DevToolsClient::~DevToolsClient() {