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

Unified Diff: chrome/utility/safe_browsing/mac/udif.cc

Issue 2341693002: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Change std::string() back to "" to fix compile Created 4 years, 3 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 | « chrome/utility/safe_browsing/mac/hfs.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/safe_browsing/mac/udif.cc
diff --git a/chrome/utility/safe_browsing/mac/udif.cc b/chrome/utility/safe_browsing/mac/udif.cc
index 22d66c0453dd1ae22a215a9a24ce8c070866bcc8..df7406c5aa16ac4a11c2e4e288d5145e70450e2a 100644
--- a/chrome/utility/safe_browsing/mac/udif.cc
+++ b/chrome/utility/safe_browsing/mac/udif.cc
@@ -402,8 +402,8 @@ size_t UDIFParser::GetPartitionSize(size_t part_number) {
std::unique_ptr<ReadStream> UDIFParser::GetPartitionReadStream(
size_t part_number) {
DCHECK_LT(part_number, blocks_.size());
- return base::WrapUnique(
- new UDIFPartitionReadStream(stream_, block_size_, blocks_[part_number]));
+ return base::MakeUnique<UDIFPartitionReadStream>(stream_, block_size_,
+ blocks_[part_number]);
}
bool UDIFParser::ParseBlkx() {
« no previous file with comments | « chrome/utility/safe_browsing/mac/hfs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698