function openNewWindow(appState, initialRoot, opt_callback) {
  // TODO(mtomasz): Migrate from full paths to a pair of a volumeId and a
  // relative path. To compose the URL communicate via messages with
  // file_manager_browser_test.cc.
  var processedAppState = appState || {};
  if (initialRoot) {
    processedAppState.currentDirectoryURL =
        'filesystem:chrome-extension://' + FILE_MANAGER_EXTENSIONS_ID +
        '/external' + initialRoot;
  }

  return remoteCall.callRemoteTestUtil('openMainWindow',
                                       null,
                                       [processedAppState],
                                       opt_callback);
}
/**
 * Opens a Files app's main window.
 *
 * TODO(mtomasz): Pass a volumeId or an enum value instead of full paths.
 *
 * @param {Object} appState App state to be passed with on opening the Files
 *     app. Can be null.
 * @param {?string} initialRoot Root path to be used as a default current
 *     directory during initialization. Can be null, for no default path.
 * @param {function(string)=} opt_callback Callback with the app id.
 * @return {Promise} Promise to be fulfilled after window creating.
 */
Opens a Files app's main window.
TODO(mtomasz): Pass a volumeId or an enum value instead of full paths.

@param {Object} appState App state to be passed with on opening the Files
app. Can be null.
@param {?string} initialRoot Root path to be used as a default current
directory during initialization. Can be null, for no default path.
@param {function(string)=} opt_callback Callback with the app id.
@return {Promise} Promise to be fulfilled after window creating.
Opens a Files app ' s main window . TODO ( mtomasz ) : Pass a volumeId or an enum value instead of full paths . @param { Object } appState App state to be passed with on opening the Files app . Can be null . @param { ?string } initialRoot Root path to be used as a default current directory during initialization . Can be null for no default path . @param { function ( string ) = } opt_callback Callback with the app id . @return { Promise } Promise to be fulfilled after window creating .
function openNewWindow(appState, initialRoot, opt_callback) {
  var processedAppState = appState || {};
  if (initialRoot) {
    processedAppState.currentDirectoryURL =
        'filesystem:chrome-extension://' + FILE_MANAGER_EXTENSIONS_ID +
        '/external' + initialRoot;
  }
  return remoteCall.callRemoteTestUtil('openMainWindow',
                                       null,
                                       [processedAppState],
                                       opt_callback);
}
function openNewWindow ( appState , initialRoot , opt_callback ) { var processedAppState = appState || { } ; if ( initialRoot ) { processedAppState . currentDirectoryURL = 'filesystem:chrome-extension://' + FILE_MANAGER_EXTENSIONS_ID + '/external' + initialRoot ; } return remoteCall . callRemoteTestUtil ( 'openMainWindow' , null , [ processedAppState ] , opt_callback ) ; }
Opens a Files app's main window.
Opens a Files app ' s main window .
// TODO(mtomasz): Migrate from full paths to a pair of a volumeId and a // relative path. To compose the URL communicate via messages with // file_manager_browser_test.cc.