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

Unified Diff: chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc

Issue 10834215: Remove static variables from HttpStreamFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo Created 8 years, 3 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
« no previous file with comments | « chrome/browser/ui/webui/net_internals/net_internals_ui.cc ('k') | content/shell/shell_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
index 806d6b6ca9b1efea2d02b22188c9597842314da1..42b984bbde5a1bde40c05c1dcd6be56bd18f2bc5 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
@@ -96,9 +96,13 @@ void AddDummyHttpPipelineFeedbackOnIOThread(
// Called on IO thread. Adds an entry to the list of known HTTP pipelining
// hosts.
-void EnableHttpPipeliningOnIOThread(bool enable) {
+void EnableHttpPipeliningOnIOThread(
+ net::URLRequestContextGetter* context_getter, bool enable) {
ASSERT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::IO));
- net::HttpStreamFactory::set_http_pipelining_enabled(enable);
+ net::URLRequestContext* context = context_getter->GetURLRequestContext();
+ net::HttpNetworkSession* http_network_session =
+ context->http_transaction_factory()->GetSession();
+ http_network_session->set_http_pipelining_enabled(enable);
}
} // namespace
@@ -275,7 +279,9 @@ void NetInternalsTest::MessageHandler::EnableHttpPipelining(
ASSERT_TRUE(list_value->GetBoolean(0, &enable));
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&EnableHttpPipeliningOnIOThread, enable));
+ base::Bind(&EnableHttpPipeliningOnIOThread,
+ make_scoped_refptr(browser()->profile()->GetRequestContext()),
+ enable));
}
void NetInternalsTest::MessageHandler::AddDummyHttpPipelineFeedback(
« no previous file with comments | « chrome/browser/ui/webui/net_internals/net_internals_ui.cc ('k') | content/shell/shell_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698