parameters: (self)
docstring: Initialize a Chrome profile directory by launching, then stopping
      Chrome in that directory.
docstring_summary: Initialize a Chrome profile directory by launching, then stopping
      Chrome in that directory.
docstring_tokens: Initialize a Chrome profile directory by launching then stopping Chrome in that directory .
function: def _InitializeProfileDir(self):
      """Initialize a Chrome profile directory by launching, then stopping
      Chrome in that directory.
      """
      _LOGGER.info('Initializing profile dir "%s".', self._profile_dir)
      params = ['--no-first-run']
      if self._startup_type == chrome_control.STARTUP_RESTORE_SESSION:
        params += self._startup_urls
      process = self._LaunchChromeImpl(params)
      self._WaitTillChromeRunning(process)
      time.sleep(5)  # Give it some time to populate some session data.
      chrome_control.ShutDown(self._profile_dir)
  
      # Hack the statup type if we're in dromaeo mode.
      startup_type = self._startup_type
      if startup_type == _DROMAEO:
        startup_type = chrome_control.STARTUP_MULTIPAGE
  
      # Configure chrome startup.
      _LOGGER.info("%s, %s", startup_type, self._startup_urls)
      chrome_control.ConfigureStartup(self._profile_dir,
                                      startup_type,
                                      self._startup_urls)
function_tokens: def _InitializeProfileDir ( self ) : _LOGGER . info ( 'Initializing profile dir "%s".' , self . _profile_dir ) params = [ '--no-first-run' ] if self . _startup_type == chrome_control . STARTUP_RESTORE_SESSION : params += self . _startup_urls process = self . _LaunchChromeImpl ( params ) self . _WaitTillChromeRunning ( process ) time . sleep ( 5 ) # Give it some time to populate some session data. chrome_control . ShutDown ( self . _profile_dir ) # Hack the statup type if we're in dromaeo mode. startup_type = self . _startup_type if startup_type == _DROMAEO : startup_type = chrome_control . STARTUP_MULTIPAGE # Configure chrome startup. _LOGGER . info ( "%s, %s" , startup_type , self . _startup_urls ) chrome_control . ConfigureStartup ( self . _profile_dir , startup_type , self . _startup_urls )