Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
| 10 #if !defined(__has_feature) || !__has_feature(objc_arc) | |
| 11 #error "This file requires ARC support." | |
| 12 #endif | |
| 13 | |
| 11 @interface FakeStartupInformation () { | 14 @interface FakeStartupInformation () { |
| 12 base::scoped_nsobject<AppStartupParameters> _startupParameters; | 15 AppStartupParameters* _startupParameters; |
|
sdefresne
2017/02/21 09:42:40
I think you can now @synthesize this property too
stkhapugin
2017/02/21 12:53:01
Done.
| |
| 13 } | 16 } |
| 14 | 17 |
| 15 @end | 18 @end |
| 16 | 19 |
| 17 @implementation FakeStartupInformation | 20 @implementation FakeStartupInformation |
| 18 | 21 |
| 19 @synthesize appLaunchTime = _appLaunchTime; | 22 @synthesize appLaunchTime = _appLaunchTime; |
| 20 @synthesize isPresentingFirstRunUI = _isPresentingFirstRunUI; | 23 @synthesize isPresentingFirstRunUI = _isPresentingFirstRunUI; |
| 21 @synthesize isColdStart = _isColdStart; | 24 @synthesize isColdStart = _isColdStart; |
| 22 | 25 |
| 23 - (AppStartupParameters*)startupParameters { | 26 - (AppStartupParameters*)startupParameters { |
|
sdefresne
2017/02/21 09:42:40
Remove if you use @synthesize.
stkhapugin
2017/02/21 12:53:01
Done.
| |
| 24 return _startupParameters; | 27 return _startupParameters; |
| 25 } | 28 } |
| 26 | 29 |
| 27 - (void)setStartupParameters:(AppStartupParameters*)startupParameters { | 30 - (void)setStartupParameters:(AppStartupParameters*)startupParameters { |
|
sdefresne
2017/02/21 09:42:40
Remove if you use @synthesize.
stkhapugin
2017/02/21 12:53:01
Done.
| |
| 28 _startupParameters.reset([startupParameters retain]); | 31 _startupParameters = startupParameters; |
| 29 } | 32 } |
| 30 | 33 |
| 31 - (FirstUserActionRecorder*)firstUserActionRecorder { | 34 - (FirstUserActionRecorder*)firstUserActionRecorder { |
| 32 // Stub. | 35 // Stub. |
| 33 return nil; | 36 return nil; |
| 34 } | 37 } |
| 35 | 38 |
| 36 - (void)resetFirstUserActionRecorder { | 39 - (void)resetFirstUserActionRecorder { |
| 37 // Stub. | 40 // Stub. |
| 38 } | 41 } |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 56 | 59 |
| 57 - (void)stopChromeMain { | 60 - (void)stopChromeMain { |
| 58 // Stub. | 61 // Stub. |
| 59 } | 62 } |
| 60 | 63 |
| 61 - (void)startChromeMain { | 64 - (void)startChromeMain { |
| 62 // Stub. | 65 // Stub. |
| 63 } | 66 } |
| 64 | 67 |
| 65 @end | 68 @end |
| OLD | NEW |