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

Side by Side Diff: content/renderer/devtools/devtools_client.cc

Issue 121033002: Update uses of UTF conversions in content/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/devtools/devtools_client.h" 5 #include "content/renderer/devtools/devtools_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "content/common/devtools_messages.h" 10 #include "content/common/devtools_messages.h"
(...skipping 11 matching lines...) Expand all
22 22
23 namespace content { 23 namespace content {
24 24
25 DevToolsClient::DevToolsClient(RenderViewImpl* render_view) 25 DevToolsClient::DevToolsClient(RenderViewImpl* render_view)
26 : RenderViewObserver(render_view) { 26 : RenderViewObserver(render_view) {
27 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 27 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
28 web_tools_frontend_.reset( 28 web_tools_frontend_.reset(
29 WebDevToolsFrontend::create( 29 WebDevToolsFrontend::create(
30 render_view->webview(), 30 render_view->webview(),
31 this, 31 this,
32 ASCIIToUTF16(command_line.GetSwitchValueASCII(switches::kLang)))); 32 base::ASCIIToUTF16(
33 command_line.GetSwitchValueASCII(switches::kLang))));
33 } 34 }
34 35
35 DevToolsClient::~DevToolsClient() { 36 DevToolsClient::~DevToolsClient() {
36 } 37 }
37 38
38 bool DevToolsClient::OnMessageReceived(const IPC::Message& message) { 39 bool DevToolsClient::OnMessageReceived(const IPC::Message& message) {
39 DCHECK(RenderThreadImpl::current()); 40 DCHECK(RenderThreadImpl::current());
40 41
41 bool handled = true; 42 bool handled = true;
42 IPC_BEGIN_MESSAGE_MAP(DevToolsClient, message) 43 IPC_BEGIN_MESSAGE_MAP(DevToolsClient, message)
(...skipping 18 matching lines...) Expand all
61 bool DevToolsClient::isUnderTest() { 62 bool DevToolsClient::isUnderTest() {
62 return RenderThreadImpl::current()->layout_test_mode(); 63 return RenderThreadImpl::current()->layout_test_mode();
63 } 64 }
64 65
65 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) { 66 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) {
66 web_tools_frontend_->dispatchOnInspectorFrontend( 67 web_tools_frontend_->dispatchOnInspectorFrontend(
67 WebString::fromUTF8(message)); 68 WebString::fromUTF8(message));
68 } 69 }
69 70
70 } // namespace content 71 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/cpp_bound_class_unittest.cc ('k') | content/renderer/dom_serializer_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698