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

Unified Diff: extensions/browser/api/storage/storage_frontend.h

Issue 1902873002: Convert //extensions/browser/api 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/api/storage/storage_frontend.h
diff --git a/extensions/browser/api/storage/storage_frontend.h b/extensions/browser/api/storage/storage_frontend.h
index 6d3427fd54600b45c7dc22a4201fe2a5d7129367..c43b81e2e28433111b12c2496746d33e1b2f99fa 100644
--- a/extensions/browser/api/storage/storage_frontend.h
+++ b/extensions/browser/api/storage/storage_frontend.h
@@ -6,11 +6,11 @@
#define EXTENSIONS_BROWSER_API_STORAGE_STORAGE_FRONTEND_H_
#include <map>
+#include <memory>
#include <string>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "extensions/browser/api/storage/settings_namespace.h"
#include "extensions/browser/api/storage/settings_observer.h"
#include "extensions/browser/api/storage/value_store_cache.h"
@@ -31,7 +31,7 @@ class StorageFrontend : public BrowserContextKeyedAPI {
static StorageFrontend* Get(content::BrowserContext* context);
// Creates with a specific |storage_factory|.
- static scoped_ptr<StorageFrontend> CreateForTesting(
+ static std::unique_ptr<StorageFrontend> CreateForTesting(
const scoped_refptr<ValueStoreFactory>& storage_factory,
content::BrowserContext* context);
@@ -87,7 +87,7 @@ class StorageFrontend : public BrowserContextKeyedAPI {
scoped_refptr<SettingsObserverList> observers_;
// Observer for |browser_context_|.
- scoped_ptr<SettingsObserver> browser_context_observer_;
+ std::unique_ptr<SettingsObserver> browser_context_observer_;
// Maps a known namespace to its corresponding ValueStoreCache. The caches
// are owned by this object.
« no previous file with comments | « extensions/browser/api/storage/storage_api_unittest.cc ('k') | extensions/browser/api/storage/storage_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698