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

Unified Diff: components/cronet/ios/Cronet.mm

Issue 2668353003: [Cronet] make HttpCacheType enum more comfortative to Obj-C style. (Closed)
Patch Set: Created 3 years, 11 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: components/cronet/ios/Cronet.mm
diff --git a/components/cronet/ios/Cronet.mm b/components/cronet/ios/Cronet.mm
index efbe206e01f44c3c951b00c5c713d51525fa6e23..65d5e87ca5bf58408c01958f0187c7fd939e7eb9 100644
--- a/components/cronet/ios/Cronet.mm
+++ b/components/cronet/ios/Cronet.mm
@@ -161,16 +161,16 @@ class CronetHttpProtocolHandlerDelegate
gSslKeyLogFileName = sslKeyLogFileName;
}
-+ (void)setHttpCacheType:(HttpCacheType)httpCacheType {
++ (void)setHttpCacheType:(CRNHttpCacheType)httpCacheType {
[self checkNotStarted];
switch (httpCacheType) {
- case DISABLED:
+ case CRNHttpCacheTypeDisabled:
gHttpCache = cronet::URLRequestContextConfig::HttpCacheType::DISABLED;
break;
- case DISK:
+ case CRNHttpCacheTypeDisk:
gHttpCache = cronet::URLRequestContextConfig::HttpCacheType::DISK;
break;
- case MEMORY:
+ case CRNHttpCacheTypeMemory:
gHttpCache = cronet::URLRequestContextConfig::HttpCacheType::MEMORY;
break;
default:

Powered by Google App Engine
This is Rietveld 408576698