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

Unified Diff: chrome/browser/history/text_database.cc

Issue 28281: Get rid of wstring variants of StringToFoo. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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/history/text_database.cc
===================================================================
--- chrome/browser/history/text_database.cc (revision 10641)
+++ chrome/browser/history/text_database.cc (working copy)
@@ -127,8 +127,8 @@
return 0;
}
- int year = StringToInt(suffix.substr(0, 4));
- int month = StringToInt(suffix.substr(5, 2));
+ int year = StringToInt(WideToUTF16Hack(suffix.substr(0, 4)));
+ int month = StringToInt(WideToUTF16Hack(suffix.substr(5, 2)));
return year * 100 + month;
}
@@ -392,4 +392,3 @@
}
} // namespace history
-

Powered by Google App Engine
This is Rietveld 408576698