chrome/browser/extensions/app_host_installer_win.cc
// Reads the path to app_host.exe from the value "UninstallString" within the
// App Host's "ClientState" registry key.  Returns an empty string if the path
// does not exist or cannot be read.
Reads the path to app_host.exe from the value "UninstallString" within the
App Host's "ClientState" registry key.  Returns an empty string if the path
does not exist or cannot be read.
Reads the path to app_host . exe from the value " UninstallString " within the App Host ' s " ClientState " registry key . Returns an empty string if the path does not exist or cannot be read .
string16 GetQuickEnableAppHostCommand(bool system_level) {
  HKEY root_key = system_level ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;
  string16 subkey(kGoogleRegClientsKey);
  subkey.append(1, L'\\').append(kBinariesAppGuid)
      .append(1, L'\\').append(kRegCommandsKey)
      .append(1, L'\\').append(kCmdQuickEnableApplicationHost);
  base::win::RegKey reg_key;
  string16 cmd;
  if (reg_key.Open(root_key, subkey.c_str(),
                   KEY_QUERY_VALUE) == ERROR_SUCCESS) {
    reg_key.ReadValue(kRegCommandLineField, &cmd);
  }
  return cmd;
}
string16 GetQuickEnableAppHostCommand ( bool system_level ) { HKEY root_key = system_level ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER ; string16 subkey ( kGoogleRegClientsKey ) ; subkey . append ( 1 , L' \\ ' ) . append ( kBinariesAppGuid ) . append ( 1 , L' \\ ' ) . append ( kRegCommandsKey ) . append ( 1 , L' \\ ' ) . append ( kCmdQuickEnableApplicationHost ) ; base :: win :: RegKey reg_key ; string16 cmd ; if ( reg_key . Open ( root_key , subkey . c_str ( ) , KEY_QUERY_VALUE ) == ERROR_SUCCESS ) { reg_key . ReadValue ( kRegCommandLineField , & cmd ) ; } return cmd ; }
Reads the path to app_host.exe from the value "UninstallString" within the
App Host's "ClientState" registry key.
Reads the path to app_host . exe from the value " UninstallString " within the App Host ' s " ClientState " registry key .
// If read is unsuccessful, |cmd| remains empty.