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

Unified Diff: ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm

Issue 2775623002: [ios] WebStateList owns all WebState it manages. (Closed)
Patch Set: Remove Tab -willClose method (Tab implements CRWWebControllerObserver protocol). Created 3 years, 9 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/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm
diff --git a/ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm b/ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm
index ac1a3cdbc4eb1965d6d437f21ee4bab4300a376a..8d47f01ba703a1b9075e7ce373e13511606f5229 100644
--- a/ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm
+++ b/ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm
@@ -41,8 +41,7 @@ const char* const kURLs[] = {kURL0, kURL1, kURL2};
class WebStateListFastEnumerationHelperTest : public PlatformTest {
public:
WebStateListFastEnumerationHelperTest()
- : web_state_list_(&web_state_list_delegate_,
- WebStateList::WebStateOwned) {}
+ : web_state_list_(&web_state_list_delegate_) {}
NSArray* ArrayFromWebStateList() {
id<WebStateProxyFactory> proxy =
@@ -69,7 +68,7 @@ class WebStateListFastEnumerationHelperTest : public PlatformTest {
test_web_state->SetCurrentURL(GURL(urls[index]));
web_state_list_.InsertWebState(web_state_list_.count(),
- test_web_state.release());
+ std::move(test_web_state));
}
}

Powered by Google App Engine
This is Rietveld 408576698