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

Unified Diff: extensions/browser/content_verifier_io_data.h

Issue 1909773002: Convert //extensions/browser 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 | « extensions/browser/content_verifier.cc ('k') | extensions/browser/content_verifier_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/content_verifier_io_data.h
diff --git a/extensions/browser/content_verifier_io_data.h b/extensions/browser/content_verifier_io_data.h
index 92e8248b8ca07376305cebd67e3e319a587aab6f..65f38efa44c7ddaa8b4df87b1e093b24e2cf6f8c 100644
--- a/extensions/browser/content_verifier_io_data.h
+++ b/extensions/browser/content_verifier_io_data.h
@@ -6,13 +6,13 @@
#define EXTENSIONS_BROWSER_CONTENT_VERIFIER_IO_DATA_H_
#include <map>
+#include <memory>
#include <set>
#include <string>
#include "base/files/file_path.h"
#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/version.h"
namespace extensions {
@@ -23,17 +23,18 @@ class ContentVerifierIOData
: public base::RefCountedThreadSafe<ContentVerifierIOData> {
public:
struct ExtensionData {
- scoped_ptr<std::set<base::FilePath>> browser_image_paths;
+ std::unique_ptr<std::set<base::FilePath>> browser_image_paths;
base::Version version;
- ExtensionData(scoped_ptr<std::set<base::FilePath>> browser_image_paths,
+ ExtensionData(std::unique_ptr<std::set<base::FilePath>> browser_image_paths,
const base::Version& version);
~ExtensionData();
};
ContentVerifierIOData();
- void AddData(const std::string& extension_id, scoped_ptr<ExtensionData> data);
+ void AddData(const std::string& extension_id,
+ std::unique_ptr<ExtensionData> data);
void RemoveData(const std::string& extension_id);
void Clear();
« no previous file with comments | « extensions/browser/content_verifier.cc ('k') | extensions/browser/content_verifier_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698