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

Unified Diff: chrome/browser/android/vr_shell/vr_web_contents_observer.cc

Issue 2946523002: VR: Support security chip text on URL bar. (Closed)
Patch Set: Address comments. Created 3 years, 6 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/android/vr_shell/vr_web_contents_observer.cc
diff --git a/chrome/browser/android/vr_shell/vr_web_contents_observer.cc b/chrome/browser/android/vr_shell/vr_web_contents_observer.cc
index 2545d3d2391f418146322bc244e048dbdc61fa57..0a60565bddff8f41ffaff9be4f9846f98fb59e6a 100644
--- a/chrome/browser/android/vr_shell/vr_web_contents_observer.cc
+++ b/chrome/browser/android/vr_shell/vr_web_contents_observer.cc
@@ -65,7 +65,9 @@ void VrWebContentsObserver::DidChangeVisibleSecurityState() {
DCHECK(helper);
security_state::SecurityInfo security_info;
helper->GetSecurityInfo(&security_info);
- ui_interface_->SetSecurityLevel(security_info.security_level);
+ bool malware = (security_info.malicious_content_status !=
+ security_state::MALICIOUS_CONTENT_STATUS_NONE);
+ ui_interface_->SetSecurityInfo(security_info.security_level, malware);
}
void VrWebContentsObserver::DidToggleFullscreenModeForTab(

Powered by Google App Engine
This is Rietveld 408576698