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

Unified Diff: chrome/browser/net/websocket_experiment/websocket_experiment_task.cc

Issue 7438002: Deprecate Profile::GetDefaultRequestContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix other references. Created 9 years, 5 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: chrome/browser/net/websocket_experiment/websocket_experiment_task.cc
diff --git a/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc b/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc
index 6740e53c719450bc9dd1ba9fe37333de533cab19..4933d40c72cb9bf9aadcc5fea1f9f85e19ef1d67 100644
--- a/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc
+++ b/chrome/browser/net/websocket_experiment/websocket_experiment_task.cc
@@ -35,10 +35,10 @@ static std::string GetProtocolVersionName(
URLFetcher* WebSocketExperimentTask::Context::CreateURLFetcher(
const Config& config, URLFetcher::Delegate* delegate) {
net::URLRequestContextGetter* getter =
- Profile::GetDefaultRequestContext();
- // Profile::GetDefaultRequestContext() is initialized lazily, on the UI
- // thread. So here, where we access it from the IO thread, if the task runs
- // before it has gotten lazily initialized yet.
+ Profile::Deprecated::GetDefaultRequestContext();
+ // Profile::Deprecated::GetDefaultRequestContext() is initialized lazily, on
+ // the UI thread. So here, where we access it from the IO thread, if the task
+ // runs before it has gotten lazily initialized yet.
if (!getter)
return NULL;
URLFetcher* fetcher =
@@ -54,10 +54,10 @@ URLFetcher* WebSocketExperimentTask::Context::CreateURLFetcher(
net::WebSocket* WebSocketExperimentTask::Context::CreateWebSocket(
const Config& config, net::WebSocketDelegate* delegate) {
net::URLRequestContextGetter* getter =
- Profile::GetDefaultRequestContext();
- // Profile::GetDefaultRequestContext() is initialized lazily, on the UI
- // thread. So here, where we access it from the IO thread, if the task runs
- // before it has gotten lazily initialized yet.
+ Profile::Deprecated::GetDefaultRequestContext();
+ // Profile::Deprecated::GetDefaultRequestContext() is initialized lazily, on
+ // the UI thread. So here, where we access it from the IO thread, if the task
+ // runs before it has gotten lazily initialized yet.
if (!getter)
return NULL;
net::WebSocket::Request* request(

Powered by Google App Engine
This is Rietveld 408576698