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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/application_delegate/fake_startup_information.mm
diff --git a/ios/chrome/app/application_delegate/fake_startup_information.mm b/ios/chrome/app/application_delegate/fake_startup_information.mm
index 2374800cf522c9b385265ba11119d364e583c173..03a8b00cb9c5fd30bbbf1e2a59848702934ceb5c 100644
--- a/ios/chrome/app/application_delegate/fake_startup_information.mm
+++ b/ios/chrome/app/application_delegate/fake_startup_information.mm
@@ -4,29 +4,19 @@
#include "ios/chrome/app/application_delegate/fake_startup_information.h"
-#import "base/mac/scoped_nsobject.h"
#include "base/time/time.h"
#include "ios/chrome/browser/app_startup_parameters.h"
-@interface FakeStartupInformation () {
- base::scoped_nsobject<AppStartupParameters> _startupParameters;
-}
-
-@end
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
@implementation FakeStartupInformation
@synthesize appLaunchTime = _appLaunchTime;
@synthesize isPresentingFirstRunUI = _isPresentingFirstRunUI;
@synthesize isColdStart = _isColdStart;
-
-- (AppStartupParameters*)startupParameters {
- return _startupParameters;
-}
-
-- (void)setStartupParameters:(AppStartupParameters*)startupParameters {
- _startupParameters.reset([startupParameters retain]);
-}
+@synthesize startupParameters = _startupParameters;
- (FirstUserActionRecorder*)firstUserActionRecorder {
// Stub.
« 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