Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
=================================================================== |
--- chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (revision 63369) |
+++ chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (working copy) |
@@ -331,9 +331,10 @@ |
size_t colon_index = command.find(':'); |
if (colon_index != std::string::npos) { |
DCHECK(colon_index < command.size() - 1); |
- std::string index_str = command.substr(colon_index + 1); |
command = command.substr(0, colon_index); |
- bool result = base::StringToInt(index_str, &element_index); |
+ bool result = base::StringToInt(command.begin() + colon_index + 1, |
+ command.end(), |
+ &element_index); |
DCHECK(result); |
} |