function overrideChrome() {
  if (originalChrome) {
    console.error('chrome object already overridden');
    return;
  }

  originalChrome = chrome;
  chrome = {
    __proto__: originalChrome,
    send: send,
    originalSend: originalChrome.send.bind(originalChrome),
  };
}
/**
 * Overrides the |chrome| object to enable mocking calls to chrome.send().
 */
Overrides the |chrome| object to enable mocking calls to chrome.send().
Overrides the |chrome| object to enable mocking calls to chrome . send () .
function overrideChrome() {
  if (originalChrome) {
    console.error('chrome object already overridden');
    return;
  }
  originalChrome = chrome;
  chrome = {
    __proto__: originalChrome,
    send: send,
    originalSend: originalChrome.send.bind(originalChrome),
  };
}
function overrideChrome ( ) { if ( originalChrome ) { console . error ( 'chrome object already overridden' ) ; return ; } originalChrome = chrome ; chrome = { __proto__ : originalChrome , send : send , originalSend : originalChrome . send . bind ( originalChrome ) , } ; }
Overrides the |chrome| object to enable mocking calls to chrome.send().
Overrides the |chrome| object to enable mocking calls to chrome . send () .