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

Unified Diff: ios/chrome/test/app/sync_test_util.mm

Issue 2888173002: [ObjC ARC] Converts ios/chrome/test/app:test_support to ARC. (Closed)
Patch Set: tighten deps exclusion Created 3 years, 6 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/test/app/static_html_view_test_util.mm ('k') | ios/chrome/test/app/tab_test_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/test/app/sync_test_util.mm
diff --git a/ios/chrome/test/app/sync_test_util.mm b/ios/chrome/test/app/sync_test_util.mm
index cb267afa19ed240767f7f2e582d70b313278e913..0ba439c48a3771c2615d48a456ff20c90256a4e4 100644
--- a/ios/chrome/test/app/sync_test_util.mm
+++ b/ios/chrome/test/app/sync_test_util.mm
@@ -34,6 +34,10 @@
#import "ios/chrome/test/app/chrome_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
fake_server::FakeServer* gSyncFakeServer = nullptr;
@@ -286,7 +290,7 @@ BOOL IsTypedUrlPresentOnClient(const GURL& url,
__block int count = 0;
using history::OriginCountAndLastVisitMap;
history_service->GetCountsAndLastVisitForOrigins(
- origins, base::BindBlock(^(const OriginCountAndLastVisitMap& result) {
+ origins, base::BindBlockArc(^(const OriginCountAndLastVisitMap& result) {
auto iter = result.find(block_safe_url);
if (iter != result.end())
count = iter->second.first;
« no previous file with comments | « ios/chrome/test/app/static_html_view_test_util.mm ('k') | ios/chrome/test/app/tab_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698