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

Unified Diff: extensions/browser/value_store/value_store_frontend.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
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);
« no previous file with comments | « extensions/browser/value_store/value_store_factory_impl.cc ('k') | extensions/browser/value_store/value_store_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698