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

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

Issue 2755823002: Moved |openedByDOM| to WebState's CreateParams and public interface. (Closed)
Patch Set: . 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
« no previous file with comments | « ios/web/public/test/fakes/test_web_state.mm ('k') | ios/web/public/test/web_test_with_web_state.mm » ('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_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 08fba8d5210e4346a6c066c0cf2bfbc291c29094..23f18c458ea1cf70642372caa74f747987e97ee6 100644
--- a/ios/web/public/test/fakes/test_web_state_delegate.mm
+++ b/ios/web/public/test/fakes/test_web_state_delegate.mm
@@ -5,7 +5,6 @@
#import "ios/web/public/test/fakes/test_web_state_delegate.h"
#include "base/memory/ptr_util.h"
-#import "ios/web/web_state/web_state_impl.h"
namespace web {
@@ -55,9 +54,9 @@
return nullptr;
}
- std::unique_ptr<WebStateImpl> child(
- base::MakeUnique<WebStateImpl>(source->GetBrowserState()));
- child->GetNavigationManagerImpl().InitializeSession(YES /*opened_by_dom*/);
+ web::WebState::CreateParams params(source->GetBrowserState());
+ params.created_with_opener = true;
+ std::unique_ptr<web::WebState> child = web::WebState::Create(params);
child->SetWebUsageEnabled(true);
child_windows_.push_back(std::move(child));
« no previous file with comments | « ios/web/public/test/fakes/test_web_state.mm ('k') | ios/web/public/test/web_test_with_web_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698