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

Side by Side Diff: ios/chrome/app/safe_mode_crashing_modules_config.mm

Issue 2453033002: Revert of [ObjC ARC] Converts ios/chrome/app to ARC. (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/app/deferred_initialization_runner.mm ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ios/chrome/app/safe_mode_crashing_modules_config.h" 5 #import "ios/chrome/app/safe_mode_crashing_modules_config.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/foundation_util.h" 8 #include "base/mac/foundation_util.h"
9 #import "base/mac/scoped_nsobject.h" 9 #import "base/mac/scoped_nsobject.h"
10 10
11 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support."
13 #endif
14
15 namespace { 11 namespace {
16 12
17 NSString* const kStartupCrashModulesKey = @"StartupCrashModules"; 13 NSString* const kStartupCrashModulesKey = @"StartupCrashModules";
18 NSString* const kModuleFriendlyNameKey = @"ModuleFriendlyName"; 14 NSString* const kModuleFriendlyNameKey = @"ModuleFriendlyName";
19 15
20 } // namespace 16 } // namespace
21 17
22 @interface SafeModeCrashingModulesConfig () { 18 @interface SafeModeCrashingModulesConfig () {
23 base::scoped_nsobject<NSDictionary> _configuration; 19 base::scoped_nsobject<NSDictionary> _configuration;
24 } 20 }
(...skipping 21 matching lines...) Expand all
46 42
47 - (NSString*)startupCrashModuleFriendlyName:(NSString*)modulePath { 43 - (NSString*)startupCrashModuleFriendlyName:(NSString*)modulePath {
48 NSDictionary* modules = base::mac::ObjCCastStrict<NSDictionary>( 44 NSDictionary* modules = base::mac::ObjCCastStrict<NSDictionary>(
49 [_configuration objectForKey:kStartupCrashModulesKey]); 45 [_configuration objectForKey:kStartupCrashModulesKey]);
50 NSDictionary* module = 46 NSDictionary* module =
51 base::mac::ObjCCastStrict<NSDictionary>(modules[modulePath]); 47 base::mac::ObjCCastStrict<NSDictionary>(modules[modulePath]);
52 return base::mac::ObjCCast<NSString>(module[kModuleFriendlyNameKey]); 48 return base::mac::ObjCCast<NSString>(module[kModuleFriendlyNameKey]);
53 } 49 }
54 50
55 @end 51 @end
OLDNEW
« no previous file with comments | « ios/chrome/app/deferred_initialization_runner.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698