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

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

Issue 2916473002: [ObjC ARC] Converts ios/web:web to ARC. (Closed)
Patch Set: Tweaks to autorelease pool 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_test.mm
diff --git a/ios/web/public/test/web_test.mm b/ios/web/public/test/web_test.mm
index e3525b9d81908ea5385c981e0665a06e9a29d1c3..9415845f9e0719c645df32fbd8db10c25e177d51 100644
--- a/ios/web/public/test/web_test.mm
+++ b/ios/web/public/test/web_test.mm
@@ -28,6 +28,7 @@ WebTest::WebTest()
WebTest::~WebTest() {}
void WebTest::SetUp() {
+ root_pool_ = [[NSAutoreleasePool alloc] init];
PlatformTest::SetUp();
BrowserState::GetActiveStateManager(&browser_state_)->SetActive(true);
}
@@ -35,6 +36,8 @@ void WebTest::SetUp() {
void WebTest::TearDown() {
BrowserState::GetActiveStateManager(&browser_state_)->SetActive(false);
PlatformTest::TearDown();
+ [root_pool_ release];
+ root_pool_ = nil;
}
TestWebClient* WebTest::GetWebClient() {

Powered by Google App Engine
This is Rietveld 408576698