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

Unified Diff: content/browser/cache_storage/cache_storage_cache_unittest.cc

Issue 1174943004: [CacheStorage] Use URLRequestContextGetter instead of URLRequestContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually pass a getter Created 5 years, 6 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/cache_storage/cache_storage_cache_unittest.cc
diff --git a/content/browser/cache_storage/cache_storage_cache_unittest.cc b/content/browser/cache_storage/cache_storage_cache_unittest.cc
index 2f11ab7735025bf6325202dde765979a7df17cc8..62afc54161c35552a68363312fe89a4424d88789 100644
--- a/content/browser/cache_storage/cache_storage_cache_unittest.cc
+++ b/content/browser/cache_storage/cache_storage_cache_unittest.cc
@@ -128,7 +128,7 @@ class TestCacheStorageCache : public CacheStorageCache {
TestCacheStorageCache(
const GURL& origin,
const base::FilePath& path,
- net::URLRequestContext* request_context,
+ const scoped_refptr<net::URLRequestContextGetter>& request_context,
mmenke 2015/06/10 17:00:31 include ref_counted.h
jkarlin 2015/06/10 18:26:03 Done.
const scoped_refptr<storage::QuotaManagerProxy>& quota_manager_proxy,
base::WeakPtr<storage::BlobStorageContext> blob_context)
: CacheStorageCache(origin,
@@ -204,7 +204,7 @@ class CacheStorageCacheTest : public testing::Test {
base::FilePath path = MemoryOnly() ? base::FilePath() : temp_dir_.path();
cache_ = make_scoped_refptr(new TestCacheStorageCache(
- GURL("http://example.com"), path, url_request_context,
+ GURL("http://example.com"), path, browser_context_.GetRequestContext(),
quota_manager_proxy_, blob_storage_context->context()->AsWeakPtr()));
}

Powered by Google App Engine
This is Rietveld 408576698