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

Side by Side Diff: printing/printed_document_posix.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "printing/printed_document.h" 5 #include "printing/printed_document.h"
6 6
7 #include "base/i18n/time_formatting.h" 7 #include "base/i18n/time_formatting.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 10
11 using base::Time; 11 using base::Time;
12 12
13 namespace printing { 13 namespace printing {
14 14
15 void PrintedDocument::Immutable::SetDocumentDate() { 15 void PrintedDocument::Immutable::SetDocumentDate() {
16 Time now = Time::Now(); 16 Time now = Time::Now();
17 date_ = WideToUTF16Hack(base::TimeFormatShortDateNumeric(now)); 17 date_ = base::TimeFormatShortDateNumeric(now);
18 time_ = WideToUTF16Hack(base::TimeFormatTimeOfDay(now)); 18 time_ = base::TimeFormatTimeOfDay(now);
19 } 19 }
20 20
21 } // namespace printing 21 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698