diff options
Diffstat (limited to 'chrome/test/page_cycler')
-rw-r--r-- | chrome/test/page_cycler/page_cycler_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/test/page_cycler/page_cycler_test.cc b/chrome/test/page_cycler/page_cycler_test.cc index 1674869..7346489 100644 --- a/chrome/test/page_cycler/page_cycler_test.cc +++ b/chrome/test/page_cycler/page_cycler_test.cc @@ -366,8 +366,9 @@ static bool HasDatabaseErrors(const std::string timings) { new_pos = timings.find(',', pos); if (new_pos == std::string::npos) new_pos = timings.length(); - time_str = timings.substr(pos, new_pos - pos); - if (!base::StringToInt(time_str, &time)) { + if (!base::StringToInt(timings.begin() + pos, + timings.begin() + new_pos, + &time)) { LOG(ERROR) << "Invalid time reported: " << time_str; return true; } |