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

Unified Diff: extensions/browser/value_store/value_store_factory.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_factory.h
diff --git a/extensions/browser/value_store/value_store_factory.h b/extensions/browser/value_store/value_store_factory.h
index ec43547e880298322a6c6261ed2f9841a95cef0b..58a73e92ed94efe293dc3f0b840f23518ad49850 100644
--- a/extensions/browser/value_store/value_store_factory.h
+++ b/extensions/browser/value_store/value_store_factory.h
@@ -5,10 +5,10 @@
#ifndef EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FACTORY_H_
#define EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FACTORY_H_
+#include <memory>
#include <set>
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "extensions/browser/api/storage/settings_namespace.h"
#include "extensions/common/extension.h"
@@ -27,14 +27,14 @@ class ValueStoreFactory : public base::RefCountedThreadSafe<ValueStoreFactory> {
enum class ModelType { APP, EXTENSION };
// Create a |ValueStore| to contain rules data.
- virtual scoped_ptr<ValueStore> CreateRulesStore() = 0;
+ virtual std::unique_ptr<ValueStore> CreateRulesStore() = 0;
// Create a |ValueStore| to contain state data.
- virtual scoped_ptr<ValueStore> CreateStateStore() = 0;
+ virtual std::unique_ptr<ValueStore> CreateStateStore() = 0;
// Create a |ValueStore| to contain settings data for a specific extension
// namespace and model type.
- virtual scoped_ptr<ValueStore> CreateSettingsStore(
+ virtual std::unique_ptr<ValueStore> CreateSettingsStore(
settings_namespace::Namespace settings_namespace,
ModelType model_type,
const ExtensionId& extension_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698