Index: components/crx_file/crx_file.h |
diff --git a/components/crx_file/crx_file.h b/components/crx_file/crx_file.h |
index bfd6000d08e8bc2fa19bcd77af67295208c14967..cf9bce8a81c2aa45a957e7a9826d746a0ac496d4 100644 |
--- a/components/crx_file/crx_file.h |
+++ b/components/crx_file/crx_file.h |
@@ -5,13 +5,13 @@ |
#ifndef COMPONENTS_CRX_FILE_CRX_FILE_H_ |
#define COMPONENTS_CRX_FILE_CRX_FILE_H_ |
-#include <string> |
-#include <vector> |
- |
#include <stddef.h> |
#include <stdint.h> |
#include <sys/types.h> |
-#include "base/memory/scoped_ptr.h" |
+ |
+#include <memory> |
+#include <string> |
+#include <vector> |
namespace base { |
class FilePath; |
@@ -52,7 +52,7 @@ class CrxFile { |
// Construct a new CRX file header object with bytes of a header |
// read from a CRX file. If a null scoped_ptr is returned, |error| |
// contains an error code with additional information. |
- static scoped_ptr<CrxFile> Parse(const Header& header, Error* error); |
+ static std::unique_ptr<CrxFile> Parse(const Header& header, Error* error); |
// Construct a new header for the given key and signature sizes. |
// Returns a null scoped_ptr if erroneous values of |key_size| and/or |
@@ -60,9 +60,9 @@ class CrxFile { |
// additional information. |
// Use this constructor and then .header() to obtain the Header |
// for writing out to a CRX file. |
- static scoped_ptr<CrxFile> Create(const uint32_t key_size, |
- const uint32_t signature_size, |
- Error* error); |
+ static std::unique_ptr<CrxFile> Create(const uint32_t key_size, |
+ const uint32_t signature_size, |
+ Error* error); |
// Returns the header structure for writing out to a CRX file. |
const Header& header() const { return header_; } |