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

Unified Diff: chrome/browser/extensions/api/storage/policy_value_store.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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/browser/extensions/api/storage/policy_value_store.h
diff --git a/chrome/browser/extensions/api/storage/policy_value_store.h b/chrome/browser/extensions/api/storage/policy_value_store.h
index 0ffc7027c4d93badb0a742a6e3859783d9e2463c..69e22a47161d0594472ec3cdc629c54e5644ae61 100644
--- a/chrome/browser/extensions/api/storage/policy_value_store.h
+++ b/chrome/browser/extensions/api/storage/policy_value_store.h
@@ -7,13 +7,13 @@
#include <stddef.h>
+#include <memory>
#include <string>
#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "extensions/browser/api/storage/settings_observer.h"
#include "extensions/browser/value_store/value_store.h"
@@ -32,7 +32,7 @@ class PolicyValueStore : public ValueStore {
public:
PolicyValueStore(const std::string& extension_id,
const scoped_refptr<SettingsObserverList>& observers,
- scoped_ptr<ValueStore> delegate);
+ std::unique_ptr<ValueStore> delegate);
~PolicyValueStore() override;
// Stores |policy| in the persistent database represented by the |delegate_|
@@ -64,7 +64,7 @@ class PolicyValueStore : public ValueStore {
private:
std::string extension_id_;
scoped_refptr<SettingsObserverList> observers_;
- scoped_ptr<ValueStore> delegate_;
+ std::unique_ptr<ValueStore> delegate_;
DISALLOW_COPY_AND_ASSIGN(PolicyValueStore);
};

Powered by Google App Engine
This is Rietveld 408576698