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

Unified Diff: extensions/browser/state_store.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
« no previous file with comments | « extensions/browser/sandboxed_unpacker_unittest.cc ('k') | extensions/browser/state_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/state_store.h
diff --git a/extensions/browser/state_store.h b/extensions/browser/state_store.h
index 5cc0037cdb5f14c04b37a6dab49b232d5b1b0269..2ad313c3b5daa863d41e741e21dd4c0dce0cbe66 100644
--- a/extensions/browser/state_store.h
+++ b/extensions/browser/state_store.h
@@ -39,7 +39,8 @@ class StateStore : public base::SupportsWeakPtr<StateStore>,
ValueStoreFrontend::BackendType backend_type,
bool deferred_load);
// This variant is useful for testing (using a mock ValueStore).
- StateStore(content::BrowserContext* context, scoped_ptr<ValueStore> store);
+ StateStore(content::BrowserContext* context,
+ std::unique_ptr<ValueStore> store);
~StateStore() override;
// Requests that the state store to be initialized after its usual delay. Can
@@ -60,7 +61,7 @@ class StateStore : public base::SupportsWeakPtr<StateStore>,
// Sets a value for a given extension and key.
void SetExtensionValue(const std::string& extension_id,
const std::string& key,
- scoped_ptr<base::Value> value);
+ std::unique_ptr<base::Value> value);
// Removes a value for a given extension and key.
void RemoveExtensionValue(const std::string& extension_id,
@@ -96,14 +97,14 @@ class StateStore : public base::SupportsWeakPtr<StateStore>,
const std::string& old_name) override;
// The store that holds our key/values.
- scoped_ptr<ValueStoreFrontend> store_;
+ std::unique_ptr<ValueStoreFrontend> store_;
// List of all known keys. They will be cleared for each extension when it is
// (un)installed.
std::set<std::string> registered_keys_;
// Keeps track of tasks we have delayed while starting up.
- scoped_ptr<DelayedTaskQueue> task_queue_;
+ std::unique_ptr<DelayedTaskQueue> task_queue_;
content::NotificationRegistrar registrar_;
« no previous file with comments | « extensions/browser/sandboxed_unpacker_unittest.cc ('k') | extensions/browser/state_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698