Index: extensions/browser/value_store/value_store_frontend.h |
diff --git a/extensions/browser/value_store/value_store_frontend.h b/extensions/browser/value_store/value_store_frontend.h |
index 55253fb4218f3324ce97bafa841e1588dc2d3143..47cab846a83440e8c4133a290b8d971c1dfc40bd 100644 |
--- a/extensions/browser/value_store/value_store_frontend.h |
+++ b/extensions/browser/value_store/value_store_frontend.h |
@@ -5,12 +5,12 @@ |
#ifndef EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FRONTEND_H_ |
#define EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FRONTEND_H_ |
+#include <memory> |
#include <string> |
#include "base/callback.h" |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
-#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
#include "base/threading/non_thread_safe.h" |
#include "base/values.h" |
@@ -32,7 +32,7 @@ class ValueStoreFrontend |
// The kind of extensions data stored in a backend. |
enum class BackendType { RULES, STATE }; |
- typedef base::Callback<void(scoped_ptr<base::Value>)> ReadCallback; |
+ typedef base::Callback<void(std::unique_ptr<base::Value>)> ReadCallback; |
ValueStoreFrontend( |
const scoped_refptr<extensions::ValueStoreFactory>& store_factory, |
@@ -44,7 +44,7 @@ class ValueStoreFrontend |
void Get(const std::string& key, const ReadCallback& callback); |
// Sets a value with the given key. |
- void Set(const std::string& key, scoped_ptr<base::Value> value); |
+ void Set(const std::string& key, std::unique_ptr<base::Value> value); |
// Removes the value with the given key. |
void Remove(const std::string& key); |