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

Unified Diff: chrome/browser/bookmarks/bookmark_codec.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/bookmarks/bookmark_codec.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_codec.cc (revision 10641)
+++ chrome/browser/bookmarks/bookmark_codec.cc (working copy)
@@ -176,7 +176,8 @@
node = new BookmarkNode(model, GURL());
node->type_ = history::StarredEntry::USER_GROUP;
node->date_group_modified_ =
- Time::FromInternalValue(StringToInt64(last_modified_date));
+ Time::FromInternalValue(StringToInt64(
+ WideToUTF16Hack(last_modified_date)));
brettw 2009/02/27 23:45:15 Don't wrap 4 spaces from random parts of the line.
if (parent)
parent->Add(parent->GetChildCount(), node);
@@ -187,6 +188,7 @@
node->SetTitle(title);
node->date_added_ =
- Time::FromInternalValue(StringToInt64(date_added_string));
+ Time::FromInternalValue(StringToInt64(WideToUTF16Hack(
+ date_added_string)));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698