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

Unified Diff: extensions/browser/value_store/legacy_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/legacy_value_store_factory.h
diff --git a/extensions/browser/value_store/legacy_value_store_factory.h b/extensions/browser/value_store/legacy_value_store_factory.h
index 65db0275a7197e6f31aadff5f5a956b12c7d8552..59517543b6b1ba07ec67a24de25934f98dde3840 100644
--- a/extensions/browser/value_store/legacy_value_store_factory.h
+++ b/extensions/browser/value_store/legacy_value_store_factory.h
@@ -5,12 +5,12 @@
#ifndef EXTENSIONS_BROWSER_VALUE_STORE_LEGACY_VALUE_STORE_FACTORY_H_
#define EXTENSIONS_BROWSER_VALUE_STORE_LEGACY_VALUE_STORE_FACTORY_H_
+#include <memory>
#include <set>
#include <string>
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "extensions/browser/value_store/value_store.h"
#include "extensions/browser/value_store/value_store_factory.h"
#include "extensions/common/extension.h"
@@ -28,9 +28,9 @@ class LegacyValueStoreFactory : public ValueStoreFactory {
bool StateDBExists() const;
// ValueStoreFactory:
- scoped_ptr<ValueStore> CreateRulesStore() override;
- scoped_ptr<ValueStore> CreateStateStore() override;
- scoped_ptr<ValueStore> CreateSettingsStore(
+ std::unique_ptr<ValueStore> CreateRulesStore() override;
+ std::unique_ptr<ValueStore> CreateStateStore() override;
+ std::unique_ptr<ValueStore> CreateSettingsStore(
settings_namespace::Namespace settings_namespace,
ModelType model_type,
const ExtensionId& extension_id) override;
@@ -82,8 +82,8 @@ class LegacyValueStoreFactory : public ValueStoreFactory {
ModelSettings* GetModel(ModelType model_type);
private:
- scoped_ptr<ModelSettings> extensions_;
- scoped_ptr<ModelSettings> apps_;
+ std::unique_ptr<ModelSettings> extensions_;
+ std::unique_ptr<ModelSettings> apps_;
DISALLOW_COPY_AND_ASSIGN(SettingsRoot);
};
« no previous file with comments | « extensions/browser/value_store/lazy_leveldb.cc ('k') | extensions/browser/value_store/legacy_value_store_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698