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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_tab_observer.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 12 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
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/sessions/restore_tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_tab_observer.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_tab_observer.cc (revision 116331)
+++ chrome/browser/safe_browsing/safe_browsing_tab_observer.cc (working copy)
@@ -12,9 +12,9 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/render_messages.h"
#include "content/browser/renderer_host/render_view_host.h"
-#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
+#include "content/public/browser/web_contents.h"
#if defined(ENABLE_SAFE_BROWSING)
#include "chrome/browser/safe_browsing/client_side_detection_host.h"
@@ -40,7 +40,7 @@
if (prefs->GetBoolean(prefs::kSafeBrowsingEnabled) &&
g_browser_process->safe_browsing_detection_service()) {
safebrowsing_detection_host_.reset(
- ClientSideDetectionHost::Create(wrapper_->tab_contents()));
+ ClientSideDetectionHost::Create(wrapper_->web_contents()));
}
}
#endif
@@ -84,13 +84,13 @@
g_browser_process->safe_browsing_detection_service()) {
if (!safebrowsing_detection_host_.get()) {
safebrowsing_detection_host_.reset(
- ClientSideDetectionHost::Create(wrapper_->tab_contents()));
+ ClientSideDetectionHost::Create(wrapper_->web_contents()));
}
} else {
safebrowsing_detection_host_.reset();
}
- RenderViewHost* rvh = wrapper_->tab_contents()->GetRenderViewHost();
+ RenderViewHost* rvh = wrapper_->web_contents()->GetRenderViewHost();
rvh->Send(new ChromeViewMsg_SetClientSidePhishingDetection(rvh->routing_id(),
safe_browsing));
#endif
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/sessions/restore_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698