Index: content/browser/tab_contents/tab_contents.cc |
=================================================================== |
--- content/browser/tab_contents/tab_contents.cc (revision 116798) |
+++ content/browser/tab_contents/tab_contents.cc (working copy) |
@@ -2055,10 +2055,7 @@ |
// Notify observers. |
FOR_EACH_OBSERVER(WebContentsObserver, observers_, DidGetUserGesture()); |
- ResourceDispatcherHost* rdh = |
- content::GetContentClient()->browser()->GetResourceDispatcherHost(); |
- if (rdh) // NULL in unittests. |
- rdh->OnUserGesture(this); |
+ ResourceDispatcherHost::Get()->OnUserGesture(this); |
} |
void TabContents::OnIgnoredUIEvent() { |