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

Unified Diff: components/crx_file/crx_file.h

Issue 1921973002: Convert //components/[a-e]* 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 | « components/constrained_window/constrained_window_views_unittest.cc ('k') | components/crx_file/crx_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_; }
« no previous file with comments | « components/constrained_window/constrained_window_views_unittest.cc ('k') | components/crx_file/crx_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698