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

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

Issue 392373002: [safe browsing] Mobile requests different malware and phishing lists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change hard-coded default lists for Android tests. Created 6 years, 5 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
Index: chrome/browser/safe_browsing/safe_browsing_tab_observer.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_tab_observer.cc b/chrome/browser/safe_browsing/safe_browsing_tab_observer.cc
index 0d10195b664b488104c596e0a79fec3387b238aa..a34c06cbcbbcef02f4afbbce7934529669283f55 100644
--- a/chrome/browser/safe_browsing/safe_browsing_tab_observer.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_tab_observer.cc
@@ -80,4 +80,14 @@ void SafeBrowsingTabObserver::UpdateSafebrowsingDetectionHost() {
#endif
}
+ // Forwards to detection host is client-side detection is enabled.
+bool SafeBrowsingTabObserver::DidPageReceiveSafeBrowsingMatch() const {
+#if defined(FULL_SAFE_BROWSING)
+ return safebrowsing_detection_host_ &&
+ safebrowsing_detection_host_->DidPageReceiveSafeBrowsingMatch();
+#else
+ return false;
+#endif
+}
+
} // namespace safe_browsing
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_tab_observer.h ('k') | chrome/browser/safe_browsing/safe_browsing_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698