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

Unified Diff: ios/chrome/browser/ui/settings/do_not_track_collection_view_controller_unittest.mm

Issue 2806323003: [ObjC ARC] Converts ios/chrome/browser/ui/settings:unit_tests to ARC. (Closed)
Patch Set: rebase Created 3 years, 8 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/browser/ui/settings/do_not_track_collection_view_controller_unittest.mm
diff --git a/ios/chrome/browser/ui/settings/do_not_track_collection_view_controller_unittest.mm b/ios/chrome/browser/ui/settings/do_not_track_collection_view_controller_unittest.mm
index 3eca362f62a9277775adaaf443cb5f058a8c50e0..90e3b7ad9f49f5bd0703f2d3acd8bc5af76ee075 100644
--- a/ios/chrome/browser/ui/settings/do_not_track_collection_view_controller_unittest.mm
+++ b/ios/chrome/browser/ui/settings/do_not_track_collection_view_controller_unittest.mm
@@ -8,7 +8,6 @@
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
-#import "base/mac/scoped_nsobject.h"
#include "base/message_loop/message_loop.h"
#include "components/prefs/pref_member.h"
#include "components/prefs/pref_registry_simple.h"
@@ -22,6 +21,10 @@
#include "testing/platform_test.h"
#include "ui/base/l10n/l10n_util_mac.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
class DoNotTrackCollectionViewControllerTest
@@ -32,7 +35,7 @@ class DoNotTrackCollectionViewControllerTest
pref_service_ = CreateLocalState();
}
- CollectionViewController* NewController() override NS_RETURNS_RETAINED {
+ CollectionViewController* InstantiateController() override {
return [[DoNotTrackCollectionViewController alloc]
initWithPrefs:pref_service_.get()];
}

Powered by Google App Engine
This is Rietveld 408576698