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

Unified Diff: chrome/common/safe_browsing/pe_image_reader_win.h

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
Index: chrome/common/safe_browsing/pe_image_reader_win.h
diff --git a/chrome/common/safe_browsing/pe_image_reader_win.h b/chrome/common/safe_browsing/pe_image_reader_win.h
index fa69e32d8ec89a28ceb543bb17f8faffa3c4dd1c..51bb238756f30b6d9e5e376a8dbe6cfab3667c94 100644
--- a/chrome/common/safe_browsing/pe_image_reader_win.h
+++ b/chrome/common/safe_browsing/pe_image_reader_win.h
@@ -5,12 +5,13 @@
#ifndef CHROME_COMMON_SAFE_BROWSING_PE_IMAGE_READER_WIN_H_
#define CHROME_COMMON_SAFE_BROWSING_PE_IMAGE_READER_WIN_H_
-#include <windows.h>
#include <stddef.h>
#include <stdint.h>
+#include <windows.h>
+
+#include <memory>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace safe_browsing {
@@ -148,7 +149,7 @@ class PeImageReader {
const uint8_t* image_data_;
size_t image_size_;
uint32_t validation_state_;
- scoped_ptr<OptionalHeader> optional_header_;
+ std::unique_ptr<OptionalHeader> optional_header_;
DISALLOW_COPY_AND_ASSIGN(PeImageReader);
};
« no previous file with comments | « chrome/common/safe_browsing/mach_o_image_reader_mac.h ('k') | chrome/common/safe_browsing/pe_image_reader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698