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

Unified Diff: webkit/tools/test_shell/listener_leak_test.cc

Issue 3968001: Update code that previously constructed strings from string iterators only to... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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: webkit/tools/test_shell/listener_leak_test.cc
===================================================================
--- webkit/tools/test_shell/listener_leak_test.cc (revision 63369)
+++ webkit/tools/test_shell/listener_leak_test.cc (working copy)
@@ -44,7 +44,9 @@
size_t j = v8_log.find(",", i);
CHECK(j != std::string::npos);
int num_objects;
- CHECK(base::StringToInt(v8_log.substr(i, j - i), &num_objects));
+ CHECK(base::StringToInt(v8_log.begin() + i,
+ v8_log.begin() + j,
+ &num_objects));
return num_objects;
}
« chrome/test/page_cycler/page_cycler_test.cc ('K') | « webkit/glue/multipart_response_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698