Index: chrome/browser/content_settings/tab_specific_content_settings.cc |
=================================================================== |
--- chrome/browser/content_settings/tab_specific_content_settings.cc (revision 138257) |
+++ chrome/browser/content_settings/tab_specific_content_settings.cc (working copy) |
@@ -28,7 +28,6 @@ |
#include "content/public/browser/navigation_entry.h" |
#include "content/public/browser/notification_service.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_delegate.h" |
#include "webkit/fileapi/file_system_types.h" |
@@ -87,7 +86,7 @@ |
// latter will miss provisional RenderViewHosts. |
for (TabSpecificList::iterator i = g_tab_specific.Get().begin(); |
i != g_tab_specific.Get().end(); ++i) { |
- if (view->GetDelegate()->GetAsWebContents() == (*i)->web_contents()) |
+ if (WebContents::FromRenderViewHost(view) == (*i)->web_contents()) |
return (*i); |
} |