function initialize() {
    cr.sendWithPromise('getExperiments', []).then((experiments) =>
        addExperiments(experiments));
    cr.sendWithPromise('getPrefs', []).then((prefs) => addPrefs(prefs));
    cr.sendWithPromise('getDatabaseManagerInfo', []).then(
      function(databaseState) {
        var fullHashCacheState = databaseState.splice(-1,1);
        addDatabaseManagerInfo(databaseState);
        addFullHashCacheInfo(fullHashCacheState);
    });
    cr.sendWithPromise('getSentThreatDetails', []).then((threatDetails) =>
        addThreatDetailsInfo(threatDetails));
    cr.addWebUIListener('threat-details-update', function(result) {
      addThreatDetailsInfo(result);
    });
  }
/**
   * Asks the C++ SafeBrowsingUIHandler to get the lists of Safe Browsing
   * ongoing experiments and preferences.
   * The SafeBrowsingUIHandler should reply to addExperiment() and
   * addPreferences() (below).
   */
Asks the C++ SafeBrowsingUIHandler to get the lists of Safe Browsing
ongoing experiments and preferences.
The SafeBrowsingUIHandler should reply to addExperiment() and
addPreferences() (below).
Asks the C ++ SafeBrowsingUIHandler to get the lists of Safe Browsing ongoing experiments and preferences . The SafeBrowsingUIHandler should reply to addExperiment () and addPreferences () ( below ) .
function initialize() {
    cr.sendWithPromise('getExperiments', []).then((experiments) =>
        addExperiments(experiments));
    cr.sendWithPromise('getPrefs', []).then((prefs) => addPrefs(prefs));
    cr.sendWithPromise('getDatabaseManagerInfo', []).then(
      function(databaseState) {
        var fullHashCacheState = databaseState.splice(-1,1);
        addDatabaseManagerInfo(databaseState);
        addFullHashCacheInfo(fullHashCacheState);
    });
    cr.sendWithPromise('getSentThreatDetails', []).then((threatDetails) =>
        addThreatDetailsInfo(threatDetails));
    cr.addWebUIListener('threat-details-update', function(result) {
      addThreatDetailsInfo(result);
    });
  }
function initialize ( ) { cr . sendWithPromise ( 'getExperiments' , [ ] ) . then ( ( experiments ) => addExperiments ( experiments ) ) ; cr . sendWithPromise ( 'getPrefs' , [ ] ) . then ( ( prefs ) => addPrefs ( prefs ) ) ; cr . sendWithPromise ( 'getDatabaseManagerInfo' , [ ] ) . then ( function ( databaseState ) { var fullHashCacheState = databaseState . splice ( - 1 , 1 ) ; addDatabaseManagerInfo ( databaseState ) ; addFullHashCacheInfo ( fullHashCacheState ) ; } ) ; cr . sendWithPromise ( 'getSentThreatDetails' , [ ] ) . then ( ( threatDetails ) => addThreatDetailsInfo ( threatDetails ) ) ; cr . addWebUIListener ( 'threat-details-update' , function ( result ) { addThreatDetailsInfo ( result ) ; } ) ; }
Asks the C++ SafeBrowsingUIHandler to get the lists of Safe Browsing
 ongoing experiments and preferences.
Asks the C ++ SafeBrowsingUIHandler to get the lists of Safe Browsing ongoing experiments and preferences .