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

Side by Side Diff: content/public/test/test_browser_context.cc

Issue 1862203005: Remove ContentBrowserClient::CreateRequestContext & CreateRequestContextForStoragePartition. (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/test_browser_context.h" 5 #include "content/public/test/test_browser_context.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/test/null_task_runner.h" 10 #include "base/test/null_task_runner.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return permission_manager_.get(); 136 return permission_manager_.get();
137 } 137 }
138 138
139 BackgroundSyncController* TestBrowserContext::GetBackgroundSyncController() { 139 BackgroundSyncController* TestBrowserContext::GetBackgroundSyncController() {
140 if (!background_sync_controller_) 140 if (!background_sync_controller_)
141 background_sync_controller_.reset(new MockBackgroundSyncController()); 141 background_sync_controller_.reset(new MockBackgroundSyncController());
142 142
143 return background_sync_controller_.get(); 143 return background_sync_controller_.get();
144 } 144 }
145 145
146 net::URLRequestContextGetter* TestBrowserContext::CreateRequestContext(
147 content::ProtocolHandlerMap* protocol_handlers,
148 content::URLRequestInterceptorScopedVector request_interceptors) {
149 return GetRequestContext();
150 }
151
152 net::URLRequestContextGetter*
153 TestBrowserContext::CreateRequestContextForStoragePartition(
154 const base::FilePath& partition_path,
155 bool in_memory,
156 ProtocolHandlerMap* protocol_handlers,
157 URLRequestInterceptorScopedVector request_interceptors) {
158 return nullptr;
159 }
160
146 } // namespace content 161 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698