| Index: chrome/browser/history/text_database.cc
|
| ===================================================================
|
| --- chrome/browser/history/text_database.cc (revision 63369)
|
| +++ chrome/browser/history/text_database.cc (working copy)
|
| @@ -112,8 +112,8 @@
|
| }
|
|
|
| int year, month;
|
| - base::StringToInt(suffix.substr(0, 4), &year);
|
| - base::StringToInt(suffix.substr(5, 2), &month);
|
| + base::StringToInt(suffix.begin(), suffix.begin() + 4, &year);
|
| + base::StringToInt(suffix.begin() + 5, suffix.begin() + 7, &month);
|
|
|
| return year * 100 + month;
|
| }
|
|
|