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

Unified Diff: chrome/browser/sync/sync_ui_util.cc

Issue 6064003: Update the time formatting APIs to use string16.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/sync/sync_ui_util.cc
===================================================================
--- chrome/browser/sync/sync_ui_util.cc (revision 69833)
+++ chrome/browser/sync/sync_ui_util.cc (working copy)
@@ -217,12 +217,12 @@
details->Append(val);
}
-std::wstring ConstructTime(int64 time_in_int) {
+string16 ConstructTime(int64 time_in_int) {
base::Time time = base::Time::FromInternalValue(time_in_int);
// If time is null the format function returns a time in 1969.
if (time.is_null())
- return std::wstring();
+ return string16();
return base::TimeFormatFriendlyDateAndTime(time);
}
@@ -354,9 +354,7 @@
DictionaryValue* val = new DictionaryValue;
val->SetString("stat_name", "Autofill Migration Time");
- val->SetString("stat_value",
- WideToUTF16Hack(
- ConstructTime(info.autofill_migration_time)));
+ val->SetString("stat_value", ConstructTime(info.autofill_migration_time));
details->Append(val);
}
}

Powered by Google App Engine
This is Rietveld 408576698