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

Unified Diff: components/html_viewer/layout_test_content_handler_impl.cc

Issue 1371673002: Remove a bunch of provisionalDataSource() usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/html_viewer/layout_test_content_handler_impl.cc
diff --git a/components/html_viewer/layout_test_content_handler_impl.cc b/components/html_viewer/layout_test_content_handler_impl.cc
index a76f294b2269246928350a017ed10744e78cba99..ae59e3b4998ffecdc1ea126795fce2bbf426fe49 100644
--- a/components/html_viewer/layout_test_content_handler_impl.cc
+++ b/components/html_viewer/layout_test_content_handler_impl.cc
@@ -24,6 +24,13 @@ class TestHTMLFrame : public HTMLFrame {
test_interfaces_ = test_interfaces;
}
+ // WebFrameTestProxy expects to be able to get a WebLocalFrame from
+ // Base::GetWebFrame().
+ blink::WebLocalFrame* GetWebFrame() {
+ return web_frame()->isWebLocalFrame() ?
+ web_frame()->toWebLocalFrame() : NULL;
+ }
+
protected:
~TestHTMLFrame() override {}

Powered by Google App Engine
This is Rietveld 408576698