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

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: 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
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..ea7b0b9730b6b077abd0c3944912bed8d68b260c 100644
--- a/ios/chrome/app/application_delegate/fake_startup_information.mm
+++ b/ios/chrome/app/application_delegate/fake_startup_information.mm
@@ -4,12 +4,15 @@
#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"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@interface FakeStartupInformation () {
- base::scoped_nsobject<AppStartupParameters> _startupParameters;
+ 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.
}
@end
@@ -25,7 +28,7 @@
}
- (void)setStartupParameters:(AppStartupParameters*)startupParameters {
sdefresne 2017/02/21 09:42:40 Remove if you use @synthesize.
stkhapugin 2017/02/21 12:53:01 Done.
- _startupParameters.reset([startupParameters retain]);
+ _startupParameters = startupParameters;
}
- (FirstUserActionRecorder*)firstUserActionRecorder {

Powered by Google App Engine
This is Rietveld 408576698