'use strict';

module.exports = {
  open(context) {
    this.storageManager = context.storageManager;
  },
  processMessage(message) {
    switch (message.type) {
      // in the future we can get trace logs from WebPageTest
      case 'browsertime.chrometrace':
      case 'webpagetest.chrometrace':
        {
          return this.storageManager.writeDataForUrl(JSON.stringify(message.data, null, 0), message.name, message.url, '', true);
        }
    }
  }
};

'use strict';

module.exports = {
  open(context) {
    this.storageManager = context.storageManager;
  },
  processMessage(message) {
    switch (message.type) {
      case 'browsertime.chrometrace':
      case 'webpagetest.chrometrace':
        {
          return this.storageManager.writeDataForUrl(JSON.stringify(message.data, null, 0), message.name, message.url, '', true);
        }
    }
  }
};

Remove out of date comment.
Remove out of date comment.

We are actually able to collect trace logs from WPT now.
