| Index: ios/crnet/crnet_environment.mm
|
| diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm
|
| index d139b7fb4cb96dc93504087bac864e2ba2f67ee5..f72e65fc603f9451a44eb44eabb0a4e2e5158ff7 100644
|
| --- a/ios/crnet/crnet_environment.mm
|
| +++ b/ios/crnet/crnet_environment.mm
|
| @@ -285,7 +285,7 @@ void CrNetEnvironment::Install() {
|
|
|
| void CrNetEnvironment::InstallIntoSessionConfiguration(
|
| NSURLSessionConfiguration* config) {
|
| - config.protocolClasses = @[ [CRNHTTPProtocolHandler class] ];
|
| + config.protocolClasses = @[ [CRNPauseableHTTPProtocolHandler class] ];
|
| }
|
|
|
| CrNetEnvironment::~CrNetEnvironment() {
|
| @@ -302,14 +302,15 @@ void CrNetEnvironment::SetHTTPProtocolHandlerRegistered(bool registered) {
|
| // Disable the default cache.
|
| [NSURLCache setSharedURLCache:nil];
|
| // Register the chrome http protocol handler to replace the default one.
|
| - BOOL success = [NSURLProtocol registerClass:[CRNHTTPProtocolHandler class]];
|
| + BOOL success = [NSURLProtocol registerClass:
|
| + [CRNPauseableHTTPProtocolHandler class]];
|
| DCHECK(success);
|
| } else {
|
| // Set up an empty default cache, with default size.
|
| // TODO(droger): If the NSURLCache is to be used, its size should most
|
| // likely be changed. On an iPod2 with iOS4, the default size is 512k.
|
| [NSURLCache setSharedURLCache:[[[NSURLCache alloc] init] autorelease]];
|
| - [NSURLProtocol unregisterClass:[CRNHTTPProtocolHandler class]];
|
| + [NSURLProtocol unregisterClass:[CRNPauseableHTTPProtocolHandler class]];
|
| }
|
| }
|
|
|
|
|