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() { |