| Index: chrome/test/page_cycler/page_cycler_test.cc
|
| ===================================================================
|
| --- chrome/test/page_cycler/page_cycler_test.cc (revision 63369)
|
| +++ chrome/test/page_cycler/page_cycler_test.cc (working copy)
|
| @@ -366,8 +366,9 @@
|
| 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;
|
| }
|
|
|