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

Side by Side Diff: ios/chrome/common/app_group/app_group_metrics_client.mm

Issue 2513013002: [ObjC ARC] Converts ios/chrome/common/app_group:client to ARC.Automatically generated ARCMigrate … (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « ios/chrome/common/app_group/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "ios/chrome/common/app_group/app_group_metrics_client.h" 5 #include "ios/chrome/common/app_group/app_group_metrics_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
9 #include "ios/chrome/common/app_group/app_group_constants.h" 9 #include "ios/chrome/common/app_group/app_group_constants.h"
10 #include "ios/chrome/common/app_group/app_group_metrics.h" 10 #include "ios/chrome/common/app_group/app_group_metrics.h"
11 11
12 #if !defined(__has_feature) || !__has_feature(objc_arc)
13 #error "This file requires ARC support."
14 #endif
15
12 namespace { 16 namespace {
13 17
14 // Number of log files to keep in the |kPendingLogFileDirectory|. Any older file 18 // Number of log files to keep in the |kPendingLogFileDirectory|. Any older file
15 // may be deleted. 19 // may be deleted.
16 const int kMaxFileNumber = 100; 20 const int kMaxFileNumber = 100;
17 21
18 } // namespace 22 } // namespace
19 23
20 namespace app_group { 24 namespace app_group {
21 namespace client_app { 25 namespace client_app {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 NSString* path = 98 NSString* path =
95 [[sorted_files objectAtIndex:file_index] objectForKey:@"path"]; 99 [[sorted_files objectAtIndex:file_index] objectForKey:@"path"];
96 NSURL* file_url = 100 NSURL* file_url =
97 [log_dir_url URLByAppendingPathComponent:path isDirectory:NO]; 101 [log_dir_url URLByAppendingPathComponent:path isDirectory:NO];
98 [file_manager removeItemAtURL:file_url error:nil]; 102 [file_manager removeItemAtURL:file_url error:nil];
99 } 103 }
100 } 104 }
101 105
102 } // namespace client_app 106 } // namespace client_app
103 } // namespace app_group 107 } // namespace app_group
OLDNEW
« no previous file with comments | « ios/chrome/common/app_group/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698