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

Unified Diff: ios/web/shell/view_controller.mm

Issue 1171203004: Correct iOS build for latest Xcode beta. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 5 years, 6 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
Index: ios/web/shell/view_controller.mm
diff --git a/ios/web/shell/view_controller.mm b/ios/web/shell/view_controller.mm
index 16e78fe72955d84dc38ffc0b678983e3e20f934d..fc7d52b9498266b33642c6d76043be4466fb8519 100644
--- a/ios/web/shell/view_controller.mm
+++ b/ios/web/shell/view_controller.mm
@@ -10,6 +10,7 @@
#include "base/strings/sys_string_conversions.h"
#include "ios/net/cookies/cookie_store_ios.h"
#import "ios/net/crn_http_protocol_handler.h"
+#import "ios/net/empty_nsurlcache.h"
#import "ios/web/navigation/crw_session_controller.h"
#include "ios/web/navigation/web_load_params.h"
#import "ios/web/net/crw_url_verifying_protocol_handler.h"
@@ -130,7 +131,7 @@ bool UseWKWebView() {
- (void)setUpNetworkStack {
// Disable the default cache.
- [NSURLCache setSharedURLCache:nil];
+ [NSURLCache setSharedURLCache:[EmptyNSURLCache emptyNSURLCache]];
_httpProtocolDelegate.reset(new web::WebHTTPProtocolHandlerDelegate(
_browserState->GetRequestContext()));
« no previous file with comments | « ios/web/net/clients/crw_redirect_network_client_factory.mm ('k') | ios/web/test/crw_fake_web_controller_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698