Commit b312b17c authored by pliard@chromium.org's avatar pliard@chromium.org

Add missing 'session->CloseIdleConnections()' in process_utils.cc (for Android).

CloseIdleConnectionsForProfile() was a no-op. It was only fetching the
HttpNetworkSession for a specific profile but wasn't actually doing anything
with it. The call to 'session->CloseIdleConnections()' got lost during the
initial review process (see code review 10816038).


Review URL: https://chromiumcodereview.appspot.com/11411315

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170933 0039d316-1c4b-4281-b951-d872f2087c98
parent 43b368fd
...@@ -37,6 +37,7 @@ void CloseIdleConnectionsForProfile( ...@@ -37,6 +37,7 @@ void CloseIdleConnectionsForProfile(
net::HttpNetworkSession* session = net::HttpNetworkSession* session =
context->http_transaction_factory()->GetSession(); context->http_transaction_factory()->GetSession();
DCHECK(session); DCHECK(session);
session->CloseIdleConnections();
} }
// Only accessed from the JNI thread by ToggleWebKitSharedTimers() which is // Only accessed from the JNI thread by ToggleWebKitSharedTimers() which is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment