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

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

Issue 14752005: Finch experiments on SSL, malware, and phishing interstitials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed files in ssl subdirectory Created 7 years, 8 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/safe_browsing/malware_block_v2.js
diff --git a/chrome/browser/resources/safe_browsing/malware_block_v2.js b/chrome/browser/resources/safe_browsing/malware_block_v2.js
index 61550d9a1dbd4cfe99589b20aa6846396dad7e33..4d18a0d2f1f5856a03872fb480bbe2493fbf2ddc 100644
--- a/chrome/browser/resources/safe_browsing/malware_block_v2.js
+++ b/chrome/browser/resources/safe_browsing/malware_block_v2.js
@@ -38,6 +38,21 @@ function seeMore() {
}
}
+function setupFinch() {
James Hawkins 2013/05/01 23:21:45 What is Finch? That's a rhetorical question. The
felt 2013/05/02 16:07:12 Done.
+ var condition = templateData.trialType;
+ if (condition == '' || condition == 'Default') {
+ return; // This is the most common case.
+ } else if (condition == 'Cond2MalwareNoBrand' ||
+ condition == 'Cond4PhishingNoBrand') {
+ $('logo').style.display = 'none';
+ } else if (condition == 'Cond5MalwareOneStep' ||
+ condition == 'Cond6PhishingOneStep') {
+ $('see-more-contents').hidden = false;
+ $('see-less-text').hidden = true;
+ $('see-more-text').hidden = true;
+ }
+}
+
/**
* Onload listener to initialize javascript handlers.
*/
@@ -71,6 +86,8 @@ document.addEventListener('DOMContentLoaded', function() {
// handler, we don't want the default actions.
preventDefaultOnPoundLinkClicks(); // From webui/js/util.js.
+ setupFinch();
+
// Allow jsdisplay elements to be visible now.
document.documentElement.classList.remove('loading');
});

Powered by Google App Engine
This is Rietveld 408576698