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

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

Issue 1899083002: Convert //chrome from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 | « chrome/utility/safe_browsing/mac/crdmg.cc ('k') | chrome/utility/safe_browsing/mac/dmg_iterator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/safe_browsing/mac/dmg_analyzer.cc
diff --git a/chrome/utility/safe_browsing/mac/dmg_analyzer.cc b/chrome/utility/safe_browsing/mac/dmg_analyzer.cc
index 43f8b6feaac6a060b2cd7e28185fd399bbdf1855..94cb913f255b9e91ac544eae6ef096c0f13da324 100644
--- a/chrome/utility/safe_browsing/mac/dmg_analyzer.cc
+++ b/chrome/utility/safe_browsing/mac/dmg_analyzer.cc
@@ -7,10 +7,10 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/common/safe_browsing/binary_feature_extractor.h"
#include "chrome/common/safe_browsing/csd.pb.h"
@@ -94,7 +94,7 @@ bool MachOFeatureExtractor::HashAndCopyStream(
return false;
buffer_.clear();
- scoped_ptr<crypto::SecureHash> sha256(
+ std::unique_ptr<crypto::SecureHash> sha256(
crypto::SecureHash::Create(crypto::SecureHash::SHA256));
size_t bytes_read;
@@ -128,7 +128,7 @@ void AnalyzeDMGFile(base::File dmg_file,
return;
while (iterator.Next()) {
- scoped_ptr<ReadStream> stream = iterator.GetReadStream();
+ std::unique_ptr<ReadStream> stream = iterator.GetReadStream();
if (!stream || !feature_extractor.IsMachO(stream.get()))
continue;
« no previous file with comments | « chrome/utility/safe_browsing/mac/crdmg.cc ('k') | chrome/utility/safe_browsing/mac/dmg_iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698