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

Unified Diff: extensions/browser/api/device_permissions_prompt.h

Issue 1902873002: Convert //extensions/browser/api 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
Index: extensions/browser/api/device_permissions_prompt.h
diff --git a/extensions/browser/api/device_permissions_prompt.h b/extensions/browser/api/device_permissions_prompt.h
index 469ff594d7182c79d6e5554887acb5d9c55d461a..cbe5e8ff6e6ba4865ec1f52b667e8255f419e6a3 100644
--- a/extensions/browser/api/device_permissions_prompt.h
+++ b/extensions/browser/api/device_permissions_prompt.h
@@ -7,13 +7,13 @@
#include <stddef.h>
+#include <memory>
#include <vector>
#include "base/callback_forward.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
namespace content {
@@ -99,7 +99,7 @@ class DevicePermissionsPrompt {
protected:
virtual ~Prompt();
- void AddCheckedDevice(scoped_ptr<DeviceInfo> device, bool allowed);
+ void AddCheckedDevice(std::unique_ptr<DeviceInfo> device, bool allowed);
const Extension* extension() const { return extension_; }
Observer* observer() const { return observer_; }
@@ -109,7 +109,7 @@ class DevicePermissionsPrompt {
// Subclasses may fill this with a particular subclass of DeviceInfo and may
// assume that only that instances of that type are stored here.
- std::vector<scoped_ptr<DeviceInfo>> devices_;
+ std::vector<std::unique_ptr<DeviceInfo>> devices_;
private:
friend class base::RefCounted<Prompt>;
« no previous file with comments | « extensions/browser/api/device_permissions_manager.cc ('k') | extensions/browser/api/device_permissions_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698