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

Unified Diff: base/i18n/icu_util.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/icu_string_conversions.cc ('k') | base/i18n/message_formatter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/icu_util.cc
diff --git a/base/i18n/icu_util.cc b/base/i18n/icu_util.cc
index afadb2563f5ee9fca45489013787790a439ba8f3..05e14671e21c062d4ea09019bfa297d7bee2f932 100644
--- a/base/i18n/icu_util.cc
+++ b/base/i18n/icu_util.cc
@@ -184,7 +184,7 @@ bool InitializeICUWithFileDescriptorInternal(
return false;
}
- scoped_ptr<MemoryMappedFile> icudtl_mapped_file(new MemoryMappedFile());
+ std::unique_ptr<MemoryMappedFile> icudtl_mapped_file(new MemoryMappedFile());
if (!icudtl_mapped_file->Initialize(File(data_fd), data_region)) {
g_debug_icu_load = 2; // To debug http://crbug.com/445616.
LOG(ERROR) << "Couldn't mmap icu data file";
@@ -310,7 +310,7 @@ bool InitializeICU() {
// when requested.
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
if (result)
- scoped_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault());
+ std::unique_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault());
#endif
return result;
}
« no previous file with comments | « base/i18n/icu_string_conversions.cc ('k') | base/i18n/message_formatter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698