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

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

Issue 2273403003: Moving gRPC support interfaces out of cronet and into a new component. (Closed)
Patch Set: Add DEPS Created 4 years, 2 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 c397eefbdebd9035ae0f0189127e5caa26b961aa..a9cb2f4e8e3344d3e8bd8c61fc475daf91662f5b 100644
--- a/components/cronet/ios/Cronet.mm
+++ b/components/cronet/ios/Cronet.mm
@@ -111,20 +111,20 @@ NSString* gSslKeyLogFileName = nil;
encoding:[NSString defaultCStringEncoding]];
}
-+ (cronet_engine*)getGlobalEngine {
++ (stream_engine*)getGlobalEngine {
DCHECK(gChromeNet.Get().get());
if (gChromeNet.Get().get()) {
- static cronet_engine engine;
- engine.obj = gChromeNet.Get().get();
+ static stream_engine engine;
+ engine.obj = gChromeNet.Get()->GetURLRequestContextGetter();
return &engine;
}
return nil;
}
// This is a non-public dummy method that prevents the linker from stripping out
-// the otherwise non-referenced methods from 'cronet_bidirectional_stream.cc'.
+// the otherwise non-referenced methods from 'bidirectional_stream.cc'.
+ (void)preventStrippingCronetBidirectionalStream {
- cronet_bidirectional_stream_create(NULL, 0, 0);
+ bidirectional_stream_create(NULL, 0, 0);
}
@end

Powered by Google App Engine
This is Rietveld 408576698