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

Unified Diff: chrome/common/safe_browsing/zip_analyzer.cc

Issue 1880143002: Convert chrome/common 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/common/safe_browsing/pe_image_reader_win.cc ('k') | chrome/common/service_process_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/safe_browsing/zip_analyzer.cc
diff --git a/chrome/common/safe_browsing/zip_analyzer.cc b/chrome/common/safe_browsing/zip_analyzer.cc
index 6f834c48c7aabd7f28a3967b3f7716acf12c213f..9a4b9e8a847abf3cacb4608034ef6f655f136a75 100644
--- a/chrome/common/safe_browsing/zip_analyzer.cc
+++ b/chrome/common/safe_browsing/zip_analyzer.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <set>
#include "base/i18n/streaming_utf8_validator.h"
@@ -37,7 +38,7 @@ class HashingFileWriter : public zip::FileWriterDelegate {
void ComputeDigest(uint8_t* digest, size_t digest_length);
private:
- scoped_ptr<crypto::SecureHash> sha256_;
+ std::unique_ptr<crypto::SecureHash> sha256_;
DISALLOW_COPY_AND_ASSIGN(HashingFileWriter);
};
« no previous file with comments | « chrome/common/safe_browsing/pe_image_reader_win.cc ('k') | chrome/common/service_process_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698