| 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];
|
|
|