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

Unified Diff: ios/web/public/test/fakes/test_web_state_delegate.mm

Issue 2922973004: [ObjC ARC] Converts ios/web/public/test/fakes:fakes to ARC. (Closed)
Patch Set: scoped_nsobject in .h 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/fakes/test_web_state_delegate.mm
diff --git a/ios/web/public/test/fakes/test_web_state_delegate.mm b/ios/web/public/test/fakes/test_web_state_delegate.mm
index 23f18c458ea1cf70642372caa74f747987e97ee6..4e545326bf199cd7349c74280d847678cc7d10ea 100644
--- a/ios/web/public/test/fakes/test_web_state_delegate.mm
+++ b/ios/web/public/test/fakes/test_web_state_delegate.mm
@@ -6,6 +6,10 @@
#include "base/memory/ptr_util.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace web {
TestOpenURLRequest::TestOpenURLRequest()
@@ -118,9 +122,8 @@ void TestWebStateDelegate::OnAuthRequired(
const AuthCallback& callback) {
last_authentication_request_ = base::MakeUnique<TestAuthenticationRequest>();
last_authentication_request_->web_state = source;
- last_authentication_request_->protection_space.reset(
- [protection_space retain]);
- last_authentication_request_->credential.reset([credential retain]);
+ last_authentication_request_->protection_space = protection_space;
+ last_authentication_request_->credential = credential;
last_authentication_request_->auth_callback = callback;
}
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_delegate.h ('k') | ios/web/public/test/fakes/test_web_state_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698