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

Unified Diff: ios/web/public/test/fakes/test_web_client.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
« no previous file with comments | « ios/web/public/test/fakes/test_web_client.h ('k') | ios/web/public/test/fakes/test_web_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/fakes/test_web_client.mm
diff --git a/ios/web/public/test/fakes/test_web_client.mm b/ios/web/public/test/fakes/test_web_client.mm
index aac1069198ee0d18866ed0aa09aff7d8639ecb33..c611433a28b907b17c6ddd7b8953dd235767717b 100644
--- a/ios/web/public/test/fakes/test_web_client.mm
+++ b/ios/web/public/test/fakes/test_web_client.mm
@@ -9,6 +9,10 @@
#include "ui/base/resource/resource_bundle.h"
#include "url/gurl.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace web {
TestWebClient::TestWebClient()
@@ -40,11 +44,11 @@ base::RefCountedMemory* TestWebClient::GetDataResourceBytes(
}
NSString* TestWebClient::GetEarlyPageScript(BrowserState* browser_state) const {
- return early_page_script_ ? early_page_script_.get() : @"";
+ return early_page_script_ ? early_page_script_ : @"";
}
void TestWebClient::SetEarlyPageScript(NSString* page_script) {
- early_page_script_.reset([page_script copy]);
+ early_page_script_ = [page_script copy];
}
void TestWebClient::AllowCertificateError(
« no previous file with comments | « ios/web/public/test/fakes/test_web_client.h ('k') | ios/web/public/test/fakes/test_web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698