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

Unified Diff: ios/chrome/browser/ui/first_run/first_run_egtest.mm

Issue 2679673002: [ObjC ARC] Converts ios/chrome/browser/ui/first_run:eg_tests 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
« no previous file with comments | « ios/chrome/browser/ui/first_run/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/first_run/first_run_egtest.mm
diff --git a/ios/chrome/browser/ui/first_run/first_run_egtest.mm b/ios/chrome/browser/ui/first_run/first_run_egtest.mm
index f93e8d6643dc051fb9780403638964000b7546e1..84fba96f35aee2cbc0d7ddd21ac87d286a6cd7c3 100644
--- a/ios/chrome/browser/ui/first_run/first_run_egtest.mm
+++ b/ios/chrome/browser/ui/first_run/first_run_egtest.mm
@@ -5,7 +5,6 @@
#import <EarlGrey/EarlGrey.h>
#import <XCTest/XCTest.h>
-#include "base/mac/scoped_nsobject.h"
#include "base/strings/sys_string_conversions.h"
#include "components/metrics/metrics_pref_names.h"
#include "components/metrics/metrics_reporting_default_state.h"
@@ -30,6 +29,10 @@
#import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.h"
#include "ui/base/l10n/l10n_util.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
// Returns a fake identity.
@@ -85,8 +88,7 @@ void AssertAuthenticatedIdentityInActiveProfile(ChromeIdentity* identity) {
GetApplicationContext()->GetLocalState());
defaultOptInPref.SetValue(metrics::EnableMetricsDefault::DEFAULT_UNKNOWN);
- base::scoped_nsobject<TestLocationManager> locationManager(
- [[TestLocationManager alloc] init]);
+ TestLocationManager* locationManager = [[TestLocationManager alloc] init];
[locationManager setLocationServicesEnabled:NO];
[[OmniboxGeolocationController sharedInstance]
setLocationManager:locationManager];
« no previous file with comments | « ios/chrome/browser/ui/first_run/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698