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

Unified Diff: ash/system/date/date_view.cc

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 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
« no previous file with comments | « ash/system/date/date_view.h ('k') | ash/system/date/date_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/date/date_view.cc
diff --git a/ash/system/date/date_view.cc b/ash/system/date/date_view.cc
index cdb2a5b07deabee1507b6d464e0d45a6d169445d..7a96d9c0c0469fe28d82326ab90f319fbdcecc14 100644
--- a/ash/system/date/date_view.cc
+++ b/ash/system/date/date_view.cc
@@ -46,7 +46,7 @@ const int kVerticalClockMinutesTopOffset = -4;
base::string16 FormatDate(const base::Time& time) {
icu::UnicodeString date_string;
- scoped_ptr<icu::DateFormat> formatter(
+ std::unique_ptr<icu::DateFormat> formatter(
icu::DateFormat::createDateInstance(icu::DateFormat::kMedium));
formatter->format(static_cast<UDate>(time.ToDoubleT() * 1000), date_string);
return base::string16(date_string.getBuffer(),
@@ -55,7 +55,7 @@ base::string16 FormatDate(const base::Time& time) {
base::string16 FormatDayOfWeek(const base::Time& time) {
UErrorCode status = U_ZERO_ERROR;
- scoped_ptr<icu::DateTimePatternGenerator> generator(
+ std::unique_ptr<icu::DateTimePatternGenerator> generator(
icu::DateTimePatternGenerator::createInstance(status));
DCHECK(U_SUCCESS(status));
const char kBasePattern[] = "EEE";
« no previous file with comments | « ash/system/date/date_view.h ('k') | ash/system/date/date_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698