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

Unified Diff: chrome/browser/safe_browsing/filter_false_positive_perftest.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: chrome/browser/safe_browsing/filter_false_positive_perftest.cc
===================================================================
--- chrome/browser/safe_browsing/filter_false_positive_perftest.cc (revision 63369)
+++ chrome/browser/safe_browsing/filter_false_positive_perftest.cc (working copy)
@@ -261,7 +261,7 @@
if (use_weights) {
std::string::size_type pos = url.find_last_of(",");
if (pos != std::string::npos) {
- base::StringToInt(std::string(url, pos + 1), &weight);
+ base::StringToInt(url.begin() + pos + 1, url.end(), &weight);
url = url.substr(0, pos);
}
}

Powered by Google App Engine
This is Rietveld 408576698