| Index: chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java
|
| index aa2292b5c5482161ad990d88424fe70148ed4c6e..2a9f1f3c930666c02996f1b09f2904a8170bd21d 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java
|
| @@ -21,5 +21,15 @@ public class ProcessUtils {
|
| nativeToggleWebKitSharedTimers(suspend);
|
| }
|
|
|
| + /**
|
| + * We have keep-alives enabled for network connections as without it some routers will
|
| + * kill the connection, causing web pages to hang. This call closes such
|
| + * idle-but-kept-alive connections.
|
| + */
|
| + public static void closeIdleConnections() {
|
| + nativeCloseIdleConnections();
|
| + }
|
| +
|
| private static native void nativeToggleWebKitSharedTimers(boolean suspend);
|
| + private static native void nativeCloseIdleConnections();
|
| }
|
|
|