lib/third_party/tracing/model/model.js
function(data) {
      data.showToUser = !!data.showToUser;

      this.importWarnings_.push(data);

      // Only log each warning type once. We may want to add some kind of
      // flag to allow reporting all importer warnings.
      if (this.reportedImportWarnings_[data.type] === true)
        return;

      if (this.importOptions_.showImportWarnings)
        console.warn(data.message);

      this.reportedImportWarnings_[data.type] = true;
    }
function(data) {
      data.showToUser = !!data.showToUser;

      this.importWarnings_.push(data);

      // Only log each warning type once. We may want to add some kind of
      // flag to allow reporting all importer warnings.
      if (this.reportedImportWarnings_[data.type] === true)
        return;

      if (this.importOptions_.showImportWarnings)
        console.warn(data.message);

      this.reportedImportWarnings_[data.type] = true;
    }
function ( data ) { data . showToUser = ! ! data . showToUser ; this . importWarnings_ . push ( data ) ; // Only log each warning type once. We may want to add some kind of // flag to allow reporting all importer warnings. if ( this . reportedImportWarnings_ [ data . type ] === true ) return ; if ( this . importOptions_ . showImportWarnings ) console . warn ( data . message ) ; this . reportedImportWarnings_ [ data . type ] = true ; }
Saves a warning that happened during import.

Warnings are typically logged to the console, and optionally, the
more critical ones are shown to the user.

@param {Object} data The import warning data. Data must provide two
accessors: type, message. The types are used to determine if we
should output the message, we'll only output one message of each type.
The message is the actual warning content.
Saves a warning that happened during import .