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

Unified Diff: components/web_view/test_frame_tree_delegate.cc

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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: components/web_view/test_frame_tree_delegate.cc
diff --git a/components/web_view/test_frame_tree_delegate.cc b/components/web_view/test_frame_tree_delegate.cc
index 90d8fe9cbb423c7a33dafd4924918bb6417c244b..b1f2c15b05ee2da4c47e9ce8efef85216da32cc6 100644
--- a/components/web_view/test_frame_tree_delegate.cc
+++ b/components/web_view/test_frame_tree_delegate.cc
@@ -13,8 +13,8 @@
namespace web_view {
-TestFrameTreeDelegate::TestFrameTreeDelegate(mojo::ApplicationImpl* app)
- : app_(app),
+TestFrameTreeDelegate::TestFrameTreeDelegate(mojo::Shell* shell)
+ : shell_(shell),
waiting_for_create_frame_(false),
waiting_for_destroy_frame_(nullptr),
most_recent_frame_(nullptr),
@@ -76,7 +76,7 @@ void TestFrameTreeDelegate::CanNavigateFrame(
mojo::URLRequestPtr request,
const CanNavigateFrameCallback& callback) {
FrameConnection::CreateConnectionForCanNavigateFrame(
- app_, target, std::move(request), callback);
+ shell_, target, std::move(request), callback);
}
void TestFrameTreeDelegate::DidStartNavigation(Frame* frame) {}
« no previous file with comments | « components/web_view/test_frame_tree_delegate.h ('k') | components/web_view/test_runner/test_runner_application_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698