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

Unified Diff: chrome/browser/debugger/debugger_remote_service.cc

Issue 7826038: Get rid of some static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/debugger/debugger_remote_service.h ('k') | chrome/common/extensions/url_pattern.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/debugger_remote_service.cc
diff --git a/chrome/browser/debugger/debugger_remote_service.cc b/chrome/browser/debugger/debugger_remote_service.cc
index a93084fc1f5b42922393cf7c2caa448318071f2b..f1622f255c339d0393bd73c1b2e2d6c11a734e3a 100644
--- a/chrome/browser/debugger/debugger_remote_service.cc
+++ b/chrome/browser/debugger/debugger_remote_service.cc
@@ -32,15 +32,15 @@ const char kCommandKey[] = "command";
} // namespace
-const std::string DebuggerRemoteServiceCommand::kAttach = "attach";
-const std::string DebuggerRemoteServiceCommand::kDetach = "detach";
-const std::string DebuggerRemoteServiceCommand::kDebuggerCommand =
+const char* const DebuggerRemoteServiceCommand::kAttach = "attach";
+const char* const DebuggerRemoteServiceCommand::kDetach = "detach";
+const char* const DebuggerRemoteServiceCommand::kDebuggerCommand =
"debugger_command";
-const std::string DebuggerRemoteServiceCommand::kEvaluateJavascript =
+const char* const DebuggerRemoteServiceCommand::kEvaluateJavascript =
"evaluate_javascript";
-const std::string DebuggerRemoteServiceCommand::kFrameNavigate =
+const char* const DebuggerRemoteServiceCommand::kFrameNavigate =
"navigated";
-const std::string DebuggerRemoteServiceCommand::kTabClosed =
+const char* const DebuggerRemoteServiceCommand::kTabClosed =
"closed";
const std::string DebuggerRemoteService::kToolName = "V8Debugger";
@@ -156,7 +156,7 @@ void DebuggerRemoteService::DebuggerOutput(int32 tab_uid,
const std::string& message) {
std::string content = StringPrintf(
"{\"command\":\"%s\",\"result\":%s,\"data\":%s}",
- DebuggerRemoteServiceCommand::kDebuggerCommand.c_str(),
+ DebuggerRemoteServiceCommand::kDebuggerCommand,
base::IntToString(RESULT_OK).c_str(),
message.c_str());
scoped_ptr<DevToolsRemoteMessage> response_message(
« no previous file with comments | « chrome/browser/debugger/debugger_remote_service.h ('k') | chrome/common/extensions/url_pattern.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698