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

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

Issue 3056029: Move the number conversions from string_util to a new file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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: chrome/browser/debugger/devtools_remote_listen_socket.cc
===================================================================
--- chrome/browser/debugger/devtools_remote_listen_socket.cc (revision 54340)
+++ chrome/browser/debugger/devtools_remote_listen_socket.cc (working copy)
@@ -20,9 +20,10 @@
#include "net/base/net_errors.h"
#endif
+#include "base/compiler_specific.h"
#include "base/eintr_wrapper.h"
#include "base/platform_thread.h"
-#include "base/string_util.h"
+#include "base/string_number_conversions.h"
#include "chrome/browser/debugger/devtools_remote.h"
#include "chrome/browser/debugger/devtools_remote_message.h"
@@ -60,7 +61,7 @@
if (protocol_field_.size() == 0) { // empty line - end of headers
const std::string& payload_length_string = GetHeader(
DevToolsRemoteMessageHeaders::kContentLength, "0");
- remaining_payload_length_ = StringToInt(payload_length_string);
+ base::StringToInt(payload_length_string, &remaining_payload_length_);
state_ = PAYLOAD;
if (remaining_payload_length_ == 0) { // no payload
DispatchField();
« no previous file with comments | « chrome/browser/debugger/debugger_remote_service.cc ('k') | chrome/browser/debugger/devtools_remote_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698