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

Unified Diff: ios/chrome/app/application_delegate/url_opener.mm

Issue 2621943002: [ObjC ARC] Converts ios/chrome/app/application_delegate:application_delegate_internal to ARC. (Closed)
Patch Set: comment Created 3 years, 11 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/url_opener.mm
diff --git a/ios/chrome/app/application_delegate/url_opener.mm b/ios/chrome/app/application_delegate/url_opener.mm
index 718d4702722b1e85ec0608bec93c45c07a9046e7..2f480188c1e1427a41d56a6c3413a63869a6b0fa 100644
--- a/ios/chrome/app/application_delegate/url_opener.mm
+++ b/ios/chrome/app/application_delegate/url_opener.mm
@@ -6,14 +6,16 @@
#import <Foundation/Foundation.h>
-#import "base/ios/weak_nsobject.h"
-#import "base/mac/scoped_nsobject.h"
#include "base/metrics/histogram_macros.h"
#import "ios/chrome/app/application_delegate/app_state.h"
#import "ios/chrome/app/application_delegate/startup_information.h"
#import "ios/chrome/app/application_delegate/tab_opening.h"
#include "ios/chrome/app/chrome_app_startup_parameters.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
// Key of the UMA Startup.MobileSessionStartFromApps histogram.
const char* const kUMAMobileSessionStartFromAppsHistogram =
@@ -36,10 +38,9 @@ const char* const kUMAMobileSessionStartFromAppsHistogram =
startupInformation:(id<StartupInformation>)startupInformation {
NSString* sourceApplication =
options[UIApplicationOpenURLOptionsSourceApplicationKey];
- base::scoped_nsobject<ChromeAppStartupParameters> params(
- [ChromeAppStartupParameters
- newChromeAppStartupParametersWithURL:url
- fromSourceApplication:sourceApplication]);
+ ChromeAppStartupParameters* params = [ChromeAppStartupParameters
+ newChromeAppStartupParametersWithURL:url
+ fromSourceApplication:sourceApplication];
MobileSessionCallerApp callerApp = [params callerApp];
« no previous file with comments | « ios/chrome/app/application_delegate/metrics_mediator.mm ('k') | ios/chrome/app/application_delegate/user_activity_handler.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698