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

Unified Diff: ios/crnet/crnet_environment.mm

Issue 2856693002: Cronet iOS: Delete CRNPauseableHTTPProtocolHandler (Closed)
Patch Set: Created 3 years, 8 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 | « components/cronet/ios/Cronet.mm ('k') | ios/net/crn_http_protocol_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/crnet/crnet_environment.mm
diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm
index 36e859fc5a5266bd1bfb7d66d884dc7fe2edfcb3..52183b02c2bc9cc2cf2d309946e71541a85f2854 100644
--- a/ios/crnet/crnet_environment.mm
+++ b/ios/crnet/crnet_environment.mm
@@ -311,7 +311,7 @@ void CrNetEnvironment::Install() {
void CrNetEnvironment::InstallIntoSessionConfiguration(
NSURLSessionConfiguration* config) {
- config.protocolClasses = @[ [CRNPauseableHTTPProtocolHandler class] ];
+ config.protocolClasses = @[ [CRNHTTPProtocolHandler class] ];
}
CrNetEnvironment::~CrNetEnvironment() {
@@ -328,14 +328,14 @@ void CrNetEnvironment::SetHTTPProtocolHandlerRegistered(bool registered) {
[NSURLCache setSharedURLCache:[EmptyNSURLCache emptyNSURLCache]];
// Register the chrome http protocol handler to replace the default one.
BOOL success =
- [NSURLProtocol registerClass:[CRNPauseableHTTPProtocolHandler class]];
+ [NSURLProtocol registerClass:[CRNHTTPProtocolHandler 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:[CRNPauseableHTTPProtocolHandler class]];
+ [NSURLProtocol unregisterClass:[CRNHTTPProtocolHandler class]];
}
}
« no previous file with comments | « components/cronet/ios/Cronet.mm ('k') | ios/net/crn_http_protocol_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698