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

Unified Diff: ios/chrome/test/app/history_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/histogram_test_util.mm ('k') | ios/chrome/test/app/navigation_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/history_test_util.mm
diff --git a/ios/chrome/test/app/history_test_util.mm b/ios/chrome/test/app/history_test_util.mm
index 1d9d8d9d1c1ca5757ceb946e4ad0a5400db7690d..500de21edffd5f76284ab3d688c3ba938db03e94 100644
--- a/ios/chrome/test/app/history_test_util.mm
+++ b/ios/chrome/test/app/history_test_util.mm
@@ -14,13 +14,17 @@
#include "ios/chrome/browser/callback_counter.h"
#import "ios/chrome/test/app/chrome_test_util.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace chrome_test_util {
void ClearBrowsingHistory() {
MainController* main_controller = GetMainController();
ios::ChromeBrowserState* active_state = GetOriginalBrowserState();
scoped_refptr<CallbackCounter> callback_counter(
- new CallbackCounter(base::BindBlock(^{
+ new CallbackCounter(base::BindBlockArc(^{
})));
callback_counter->IncrementCount();
__block bool did_complete = false;
« no previous file with comments | « ios/chrome/test/app/histogram_test_util.mm ('k') | ios/chrome/test/app/navigation_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698