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

Unified Diff: ios/web/public/test/web_view_interaction_test_util.mm

Issue 2920303003: [ObjC ARC] Converts ios/web/public/test:test to ARC. (Closed)
Patch Set: unsafe_unretained 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
Index: ios/web/public/test/web_view_interaction_test_util.mm
diff --git a/ios/web/public/test/web_view_interaction_test_util.mm b/ios/web/public/test/web_view_interaction_test_util.mm
index 9e629c5d7f980c8fc58acb553ce15feaacfae0a6..ba7c7304d044441605139f4b378cd9d07300989b 100644
--- a/ios/web/public/test/web_view_interaction_test_util.mm
+++ b/ios/web/public/test/web_view_interaction_test_util.mm
@@ -14,6 +14,10 @@
#import "ios/web/web_state/ui/crw_web_view_proxy_impl.h"
#import "ios/web/web_state/web_state_impl.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
using web::NavigationManager;
namespace web {
@@ -30,7 +34,7 @@ std::unique_ptr<base::Value> ExecuteJavaScript(web::WebState* web_state,
__block std::unique_ptr<base::Value> result;
__block bool did_finish = false;
web_state->ExecuteJavaScript(base::UTF8ToUTF16(script),
- base::BindBlock(^(const base::Value* value) {
+ base::BindBlockArc(^(const base::Value* value) {
if (value)
result = value->CreateDeepCopy();
did_finish = true;
« ios/web/public/test/js_test_util.h ('K') | « ios/web/public/test/web_test_with_web_state.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698