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

Side by Side Diff: ios/chrome/app/application_delegate/fake_startup_information.mm

Issue 2706033003: [ObjC ARC] Converts ios/chrome/app/application_delegate:test_support to ARC. (Closed)
Patch Set: comments Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/app/application_delegate/fake_startup_information.h" 5 #include "ios/chrome/app/application_delegate/fake_startup_information.h"
6 6
7 #import "base/mac/scoped_nsobject.h"
8 #include "base/time/time.h" 7 #include "base/time/time.h"
9 #include "ios/chrome/browser/app_startup_parameters.h" 8 #include "ios/chrome/browser/app_startup_parameters.h"
10 9
11 @interface FakeStartupInformation () { 10 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 base::scoped_nsobject<AppStartupParameters> _startupParameters; 11 #error "This file requires ARC support."
13 } 12 #endif
14
15 @end
16 13
17 @implementation FakeStartupInformation 14 @implementation FakeStartupInformation
18 15
19 @synthesize appLaunchTime = _appLaunchTime; 16 @synthesize appLaunchTime = _appLaunchTime;
20 @synthesize isPresentingFirstRunUI = _isPresentingFirstRunUI; 17 @synthesize isPresentingFirstRunUI = _isPresentingFirstRunUI;
21 @synthesize isColdStart = _isColdStart; 18 @synthesize isColdStart = _isColdStart;
22 19 @synthesize startupParameters = _startupParameters;
23 - (AppStartupParameters*)startupParameters {
24 return _startupParameters;
25 }
26
27 - (void)setStartupParameters:(AppStartupParameters*)startupParameters {
28 _startupParameters.reset([startupParameters retain]);
29 }
30 20
31 - (FirstUserActionRecorder*)firstUserActionRecorder { 21 - (FirstUserActionRecorder*)firstUserActionRecorder {
32 // Stub. 22 // Stub.
33 return nil; 23 return nil;
34 } 24 }
35 25
36 - (void)resetFirstUserActionRecorder { 26 - (void)resetFirstUserActionRecorder {
37 // Stub. 27 // Stub.
38 } 28 }
39 29
(...skipping 16 matching lines...) Expand all
56 46
57 - (void)stopChromeMain { 47 - (void)stopChromeMain {
58 // Stub. 48 // Stub.
59 } 49 }
60 50
61 - (void)startChromeMain { 51 - (void)startChromeMain {
62 // Stub. 52 // Stub.
63 } 53 }
64 54
65 @end 55 @end
OLDNEW
« no previous file with comments | « ios/chrome/app/application_delegate/BUILD.gn ('k') | ios/chrome/app/application_delegate/mock_tab_opener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698