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

Side by Side Diff: components/cronet/ios/cronet_consumer/cronet_consumer_app_delegate.mm

Issue 2807283002: [Cronet] Build static libcronet.a for iOS with complete dependencies. (Closed)
Patch Set: Remove cronet_sample, make cronet_consumer_static buildable with lib_cronet. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "cronet_consumer_app_delegate.h" 5 #import "cronet_consumer_app_delegate.h"
6 6
7 #import <Cronet/Cronet.h> 7 #import "components/cronet/ios/Cronet.h"
kapishnikov 2017/05/17 16:02:49 Ideally, we should not make this change but depend
mef 2017/05/19 18:07:59 Yes, ideally we'll make a static framework, so con
8 8
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #import "cronet_consumer_view_controller.h" 10 #import "cronet_consumer_view_controller.h"
11 11
12 @implementation CronetConsumerAppDelegate { 12 @implementation CronetConsumerAppDelegate {
13 NSUInteger _counter; 13 NSUInteger _counter;
14 } 14 }
15 15
16 @synthesize window; 16 @synthesize window;
17 @synthesize viewController; 17 @synthesize viewController;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 - (void)applicationDidEnterBackground:(UIApplication*)application { 77 - (void)applicationDidEnterBackground:(UIApplication*)application {
78 [Cronet stopNetLog]; 78 [Cronet stopNetLog];
79 } 79 }
80 80
81 - (void)applicationWillEnterForeground:(UIApplication*)application { 81 - (void)applicationWillEnterForeground:(UIApplication*)application {
82 _counter++; 82 _counter++;
83 [Cronet startNetLogToFile:[self currentNetLogFileName] logBytes:NO]; 83 [Cronet startNetLogToFile:[self currentNetLogFileName] logBytes:NO];
84 } 84 }
85 85
86 @end 86 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698