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

Unified Diff: chrome/browser/resources/security_warnings/safe_browsing.js

Issue 600153004: Refactor SafeBrowsing and SSL interstitials to have a type variable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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/resources/security_warnings/safe_browsing.js
diff --git a/chrome/browser/resources/security_warnings/safe_browsing.js b/chrome/browser/resources/security_warnings/safe_browsing.js
index 6c7ea2aeedbd11cf9a87bef7e98f8ff655cfdf75..bb154f95bbc5869d9670957c8621ffe8c703df90 100644
--- a/chrome/browser/resources/security_warnings/safe_browsing.js
+++ b/chrome/browser/resources/security_warnings/safe_browsing.js
@@ -18,7 +18,8 @@ var SB_DISPLAY_CHECK_BOX = 'displaycheckbox';
// This sets up the Extended Safe Browsing Reporting opt-in.
function setupCheckbox() {
- if (loadTimeData.getBoolean('ssl') || loadTimeData.getBoolean('phishing') ||
+ if (loadTimeData.getString('type') != 'SAFEBROWSING' ||
+ loadTimeData.getBoolean('phishing') ||
!loadTimeData.getBoolean(SB_DISPLAY_CHECK_BOX)) {
return;
}
« no previous file with comments | « chrome/browser/resources/security_warnings/interstitial_v2.js ('k') | chrome/browser/resources/security_warnings/ssl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698