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

Side by Side Diff: components/safe_browsing/web_ui/resources/safe_browsing.js

Issue 2964693003: Added experiments section and exported the list of SafeBrowsing features in WebUI (Closed)
Patch Set: changed references for pointers Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 /* Copyright 2017 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
4
5 cr.define('safe_browsing', function() {
6 'use strict';
7
8 function initialize() {
9 chrome.send('expParamList',[]);
10 }
11
12 function addExperiment(result) {
vakh (use Gerrit instead) 2017/07/07 18:42:09 This file is not indented correctly. Try running
13 var resLength = result.length;
14 var experimentsListFormatted="";
15
16 for (var i = 0; i < resLength; i+=2) {
17 experimentsListFormatted += "<div>" + result[i+1] + " --- " + result [i] +
18 "</div>";}
19 $('experimentsList').innerHTML = experimentsListFormatted;
20 }
21
22 return {
23 addExperiment: addExperiment,
24 initialize: initialize,
25 };
26
27 });
28
29 document.addEventListener('DOMContentLoaded', safe_browsing.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698