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

Unified Diff: chrome/browser/ui/location_bar/origin_chip_info.cc

Issue 397853002: Refactor safe-browsing build-config definitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup gn files 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/ui/location_bar/origin_chip_info.cc
diff --git a/chrome/browser/ui/location_bar/origin_chip_info.cc b/chrome/browser/ui/location_bar/origin_chip_info.cc
index 611e86319efe23dbac071274b94ee2b185dde4a1..bd924996ffa9d29524e09f6f7d037cbdd0d9fe66 100644
--- a/chrome/browser/ui/location_bar/origin_chip_info.cc
+++ b/chrome/browser/ui/location_bar/origin_chip_info.cc
@@ -167,8 +167,7 @@ bool OriginChip::IsMalware(const GURL& url, const content::WebContents* tab) {
const safe_browsing::SafeBrowsingTabObserver* sb_observer =
safe_browsing::SafeBrowsingTabObserver::FromWebContents(tab);
- return sb_observer && sb_observer->detection_host() &&
- sb_observer->detection_host()->DidPageReceiveSafeBrowsingMatch();
+ return sb_observer && sb_observer->DidPageReceiveSafeBrowsingMatch();
}
// static

Powered by Google App Engine
This is Rietveld 408576698