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

Unified Diff: base/i18n/timezone.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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 | « base/i18n/time_formatting_unittest.cc ('k') | base/ios/device_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/timezone.cc
diff --git a/base/i18n/timezone.cc b/base/i18n/timezone.cc
index fbc9949d1e4c8976d5e1a64eb9dc5891b82ca7be..e881c9d680f8277dfeb384365399f23a2268c467 100644
--- a/base/i18n/timezone.cc
+++ b/base/i18n/timezone.cc
@@ -607,7 +607,7 @@ class TimezoneMap {
} // namespace
std::string CountryCodeForCurrentTimezone() {
- scoped_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault());
+ std::unique_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault());
icu::UnicodeString id;
zone->getID(id);
string16 olson_code(id.getBuffer(), id.length());
« no previous file with comments | « base/i18n/time_formatting_unittest.cc ('k') | base/ios/device_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698