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

Unified Diff: chrome/test/base/javascript_test_observer.cc

Issue 157713002: Switch DomAutomationController to be a RenderFrameObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nasko@ CR feedback Created 6 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: chrome/test/base/javascript_test_observer.cc
diff --git a/chrome/test/base/javascript_test_observer.cc b/chrome/test/base/javascript_test_observer.cc
index bf3a85d3733618c6a37b7adbf6bc8ca0d2d06121..d010b93dcfae86216108c1135e0b2ea953e3ccfd 100644
--- a/chrome/test/base/javascript_test_observer.cc
+++ b/chrome/test/base/javascript_test_observer.cc
@@ -7,6 +7,7 @@
#include "content/public/browser/dom_operation_notification_details.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/web_contents.h"
#include "content/public/test/test_utils.h"
TestMessageHandler::TestMessageHandler() : ok_(true) {
@@ -26,14 +27,15 @@ void TestMessageHandler::Reset() {
}
JavascriptTestObserver::JavascriptTestObserver(
- content::RenderViewHost* render_view_host,
+ content::WebContents* web_contents,
TestMessageHandler* handler)
: handler_(handler),
running_(false),
finished_(false) {
Reset();
- registrar_.Add(this, content::NOTIFICATION_DOM_OPERATION_RESPONSE,
- content::Source<content::RenderViewHost>(render_view_host));
+ registrar_.Add(this,
+ content::NOTIFICATION_DOM_OPERATION_RESPONSE,
+ content::Source<content::WebContents>(web_contents));
}
JavascriptTestObserver::~JavascriptTestObserver() {

Powered by Google App Engine
This is Rietveld 408576698