OLD | NEW |
---|---|
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 "crnet_consumer_app_delegate.h" | 5 #import "crnet_consumer_app_delegate.h" |
6 | 6 |
7 #import "ios/crnet/CrNet.h" | 7 #import <CrNet/CrNet.h> |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
sdefresne
2016/09/09 14:52:42
nit: blank line to separate import from framework
mef
2016/09/09 15:01:19
Done.
| |
9 #import "crnet_consumer_view_controller.h" | 9 #import "crnet_consumer_view_controller.h" |
10 | 10 |
11 @implementation CrNetConsumerAppDelegate { | 11 @implementation CrNetConsumerAppDelegate { |
12 NSUInteger _counter; | 12 NSUInteger _counter; |
13 } | 13 } |
14 | 14 |
15 @synthesize window; | 15 @synthesize window; |
16 @synthesize viewController; | 16 @synthesize viewController; |
17 | 17 |
18 // Returns a file name to save net internals logging. This method suffixes | 18 // Returns a file name to save net internals logging. This method suffixes |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 NSLog(@"Cache cleared: %d\n", error); | 80 NSLog(@"Cache cleared: %d\n", error); |
81 }]; | 81 }]; |
82 } | 82 } |
83 | 83 |
84 - (void)applicationWillEnterForeground:(UIApplication*)application { | 84 - (void)applicationWillEnterForeground:(UIApplication*)application { |
85 _counter++; | 85 _counter++; |
86 [CrNet startNetLogToFile:[self currentNetLogFileName] logBytes:NO]; | 86 [CrNet startNetLogToFile:[self currentNetLogFileName] logBytes:NO]; |
87 } | 87 } |
88 | 88 |
89 @end | 89 @end |
OLD | NEW |