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

Unified Diff: ios/web/web_state/web_state_impl_unittest.mm

Issue 2755823002: Moved |openedByDOM| to WebState's CreateParams and public interface. (Closed)
Patch Set: BVC session controller cleanup 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/web/web_state/web_state_impl_unittest.mm
diff --git a/ios/web/web_state/web_state_impl_unittest.mm b/ios/web/web_state/web_state_impl_unittest.mm
index 093cf8acdfe6a22a8da1b9dd10b8449a8b797cb2..c86eaa2d222450dd6b54b3bfaba4fad62bb1a69c 100644
--- a/ios/web/web_state/web_state_impl_unittest.mm
+++ b/ios/web/web_state/web_state_impl_unittest.mm
@@ -162,7 +162,10 @@ bool HandleScriptCommand(bool* is_called,
// Test fixture for web::WebStateImpl class.
class WebStateImplTest : public web::WebTest {
protected:
- WebStateImplTest() : web_state_(new WebStateImpl(GetBrowserState())) {}
+ WebStateImplTest() : web::WebTest() {
+ web::WebState::CreateParams params(GetBrowserState());
+ web_state_ = base::MakeUnique<web::WebStateImpl>(params);
+ }
std::unique_ptr<WebStateImpl> web_state_;
};

Powered by Google App Engine
This is Rietveld 408576698