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

Unified Diff: content/browser/appcache/mock_appcache_storage.h

Issue 1874893002: Convert //content/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: content/browser/appcache/mock_appcache_storage.h
diff --git a/content/browser/appcache/mock_appcache_storage.h b/content/browser/appcache/mock_appcache_storage.h
index 22d0e8e892bc8637dcb51fe3ed8f2e7b34c92b57..6a27ad3b0258353c8cc973050e5804c186fef179 100644
--- a/content/browser/appcache/mock_appcache_storage.h
+++ b/content/browser/appcache/mock_appcache_storage.h
@@ -9,13 +9,13 @@
#include <deque>
#include <map>
+#include <memory>
#include <vector>
#include "base/callback.h"
#include "base/containers/hash_tables.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "content/browser/appcache/appcache.h"
#include "content/browser/appcache/appcache_disk_cache.h"
@@ -201,7 +201,7 @@ class MockAppCacheStorage : public AppCacheStorage {
StoredGroupMap stored_groups_;
StoredEvictionTimesMap stored_eviction_times_;
DoomedResponseIds doomed_response_ids_;
- scoped_ptr<AppCacheDiskCache> disk_cache_;
+ std::unique_ptr<AppCacheDiskCache> disk_cache_;
std::deque<base::Closure> pending_tasks_;
bool simulate_make_group_obsolete_failure_;
@@ -217,7 +217,7 @@ class MockAppCacheStorage : public AppCacheStorage {
GURL simulated_found_manifest_url_;
bool simulated_found_network_namespace_;
scoped_refptr<AppCacheInfoCollection> simulated_appcache_info_;
- scoped_ptr<AppCacheResponseReader> simulated_reader_;
+ std::unique_ptr<AppCacheResponseReader> simulated_reader_;
base::WeakPtrFactory<MockAppCacheStorage> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698