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

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

Issue 8956050: Rename TabContents::controller() to GetController and put it into the WebContents interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
Index: chrome/browser/safe_browsing/client_side_detection_host.cc
===================================================================
--- chrome/browser/safe_browsing/client_side_detection_host.cc (revision 115228)
+++ chrome/browser/safe_browsing/client_side_detection_host.cc (working copy)
@@ -347,9 +347,9 @@
resource.render_view_id &&
(resource.threat_type == SafeBrowsingService::URL_PHISHING ||
resource.threat_type == SafeBrowsingService::URL_MALWARE) &&
- tab_contents()->controller().GetActiveEntry()) {
+ tab_contents()->GetController().GetActiveEntry()) {
unsafe_unique_page_id_ =
- tab_contents()->controller().GetActiveEntry()->unique_id();
+ tab_contents()->GetController().GetActiveEntry()->unique_id();
// We also keep the resource around in order to be able to send the
// malicious URL to the server.
unsafe_resource_.reset(new SafeBrowsingService::UnsafeResource(resource));
@@ -426,7 +426,7 @@
if (!sb_service_->IsWhitelisted(resource)) {
// We need to stop any pending navigations, otherwise the interstital
// might not get created properly.
- tab_contents()->controller().DiscardNonCommittedEntries();
+ tab_contents()->GetController().DiscardNonCommittedEntries();
resource.client = new CsdClient(); // Will delete itself
sb_service_->DoDisplayBlockingPage(resource);
}
@@ -474,7 +474,7 @@
return false;
}
const NavigationEntry* nav_entry =
- tab_contents()->controller().GetActiveEntry();
+ tab_contents()->GetController().GetActiveEntry();
return (nav_entry && nav_entry->unique_id() == unsafe_unique_page_id_);
}
« no previous file with comments | « chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc ('k') | chrome/browser/safe_browsing/malware_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698