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

Unified Diff: components/cronet/ios/cronet_consumer/cronet_consumer_view_controller.m

Issue 2859693005: Cronet iOS: Move crnet_consumer sample app to Cronet (Closed)
Patch Set: Added explicit dependencies Created 3 years, 7 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_consumer/cronet_consumer_view_controller.m
diff --git a/ios/crnet/crnet_consumer/crnet_consumer_view_controller.m b/components/cronet/ios/cronet_consumer/cronet_consumer_view_controller.m
similarity index 66%
rename from ios/crnet/crnet_consumer/crnet_consumer_view_controller.m
rename to components/cronet/ios/cronet_consumer/cronet_consumer_view_controller.m
index 7c7ea6e81f832797b6be73603e17627d7c9569b2..8d25cef9e49cec4796945d05cd48b0ab33add72e 100644
--- a/ios/crnet/crnet_consumer/crnet_consumer_view_controller.m
+++ b/components/cronet/ios/cronet_consumer/cronet_consumer_view_controller.m
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "crnet_consumer_view_controller.h"
+#import "cronet_consumer_view_controller.h"
-#import <CrNet/CrNet.h>
+#import <Cronet/Cronet.h>
-@implementation CrNetConsumerViewController {
+@implementation CronetConsumerViewController {
UIWebView* _webView;
}
@@ -22,13 +22,11 @@
[self.view addSubview:button];
_webView = [[UIWebView alloc]
- initWithFrame:CGRectMake(0,
- 52,
- self.view.bounds.size.width,
+ initWithFrame:CGRectMake(0, 52, self.view.bounds.size.width,
self.view.bounds.size.height - 52)];
[self.view addSubview:_webView];
- _webView.autoresizingMask = UIViewAutoresizingFlexibleWidth |
- UIViewAutoresizingFlexibleHeight;
+ _webView.autoresizingMask =
+ UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[self loadChromium];
}
@@ -39,8 +37,10 @@
}
- (void)loadChromium {
- [_webView loadRequest:[NSURLRequest requestWithURL:
- [NSURL URLWithString:@"https://www.chromium.org"]]];
+ [_webView
+ loadRequest:[NSURLRequest
+ requestWithURL:
+ [NSURL URLWithString:@"https://www.chromium.org"]]];
}
@end
« no previous file with comments | « components/cronet/ios/cronet_consumer/cronet_consumer_view_controller.h ('k') | components/cronet/ios/cronet_consumer/main.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698