Index: chrome/test/base/ui_test_utils.cc |
=================================================================== |
--- chrome/test/base/ui_test_utils.cc (revision 138799) |
+++ chrome/test/base/ui_test_utils.cc (working copy) |
@@ -55,7 +55,6 @@ |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_view_host.h" |
-#include "content/public/browser/render_view_host_delegate.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_observer.h" |
#include "content/public/browser/web_contents_view.h" |
@@ -100,7 +99,7 @@ |
public: |
explicit DOMOperationObserver(RenderViewHost* render_view_host) |
: content::WebContentsObserver( |
- render_view_host->GetDelegate()->GetAsWebContents()), |
+ WebContents::FromRenderViewHost(render_view_host)), |
did_respond_(false) { |
registrar_.Add(this, content::NOTIFICATION_DOM_OPERATION_RESPONSE, |
content::Source<RenderViewHost>(render_view_host)); |