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

Unified Diff: extensions/browser/api/storage/settings_storage_quota_enforcer.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/settings_storage_quota_enforcer.h
diff --git a/extensions/browser/api/storage/settings_storage_quota_enforcer.h b/extensions/browser/api/storage/settings_storage_quota_enforcer.h
index 33de5b7fa13bf2c5f7fcf0323e90c7b3fd1643f1..ae8b511e984a79fcf959832e615e6f501ba7adf6 100644
--- a/extensions/browser/api/storage/settings_storage_quota_enforcer.h
+++ b/extensions/browser/api/storage/settings_storage_quota_enforcer.h
@@ -8,12 +8,12 @@
#include <stddef.h>
#include <map>
+#include <memory>
#include <string>
#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "extensions/browser/value_store/value_store.h"
@@ -35,7 +35,7 @@ class SettingsStorageQuotaEnforcer : public ValueStore {
};
SettingsStorageQuotaEnforcer(const Limits& limits,
- scoped_ptr<ValueStore> delegate);
+ std::unique_ptr<ValueStore> delegate);
~SettingsStorageQuotaEnforcer() override;
@@ -72,7 +72,7 @@ class SettingsStorageQuotaEnforcer : public ValueStore {
const Limits limits_;
// The delegate storage area.
- scoped_ptr<ValueStore> const delegate_;
+ std::unique_ptr<ValueStore> const delegate_;
// Total bytes in used by |delegate_|. Includes both key lengths and
// JSON-encoded values.

Powered by Google App Engine
This is Rietveld 408576698