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

Unified Diff: ios/chrome/app/application_delegate/mock_tab_opener.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/mock_tab_opener.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/application_delegate/mock_tab_opener.mm
diff --git a/ios/chrome/app/application_delegate/mock_tab_opener.mm b/ios/chrome/app/application_delegate/mock_tab_opener.mm
index 1aaf9276464a93e3cea3320e8540a9f533a91a7e..100a9e043206a80747705f5657f52e65fe86bf0e 100644
--- a/ios/chrome/app/application_delegate/mock_tab_opener.mm
+++ b/ios/chrome/app/application_delegate/mock_tab_opener.mm
@@ -10,16 +10,15 @@
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
-@interface MockTabOpener () {
- base::mac::ScopedBlock<ProceduralBlock> _completionBlock;
-}
-
-@end
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
@implementation MockTabOpener
@synthesize url = _url;
@synthesize applicationMode = _applicationMode;
+@synthesize completionBlock = _completionBlock;
- (void)dismissModalsAndOpenSelectedTabInMode:(ApplicationMode)targetMode
withURL:(const GURL&)url
@@ -27,17 +26,13 @@
completion:(ProceduralBlock)handler {
_url = url;
_applicationMode = targetMode;
- _completionBlock.reset([handler copy]);
+ _completionBlock = [handler copy];
}
- (void)resetURL {
_url = _url.EmptyGURL();
}
-- (void (^)())completionBlock {
- return _completionBlock;
-}
-
- (void)openTabFromLaunchOptions:(NSDictionary*)launchOptions
startupInformation:(id<StartupInformation>)startupInformation
appState:(AppState*)appState {
« no previous file with comments | « ios/chrome/app/application_delegate/mock_tab_opener.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698