diff options
Diffstat (limited to 'chrome/browser/extensions/api/messaging/native_process_launcher_win.cc')
-rw-r--r-- | chrome/browser/extensions/api/messaging/native_process_launcher_win.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc b/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc index 31fbdc8..36a0653 100644 --- a/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc +++ b/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc @@ -27,16 +27,16 @@ namespace { // Reads path to the native messaging host manifest from the registry. Returns // empty string if the path isn't found. -string16 GetManifestPath(const string16& native_host_name, DWORD flags) { +string16 GetManifestPath(const base::string16& native_host_name, DWORD flags) { base::win::RegKey key; - string16 result; + base::string16 result; if (key.Open(HKEY_LOCAL_MACHINE, kNativeMessagingRegistryKey, KEY_QUERY_VALUE | flags) != ERROR_SUCCESS || key.OpenKey(native_host_name.c_str(), KEY_QUERY_VALUE | flags) != ERROR_SUCCESS || key.ReadValue(NULL, &result) != ERROR_SUCCESS) { - return string16(); + return base::string16(); } return result; @@ -48,10 +48,10 @@ string16 GetManifestPath(const string16& native_host_name, DWORD flags) { base::FilePath NativeProcessLauncher::FindManifest( const std::string& native_host_name, std::string* error_message) { - string16 native_host_name_wide = UTF8ToUTF16(native_host_name); + base::string16 native_host_name_wide = UTF8ToUTF16(native_host_name); // First check 32-bit registry and then try 64-bit. - string16 manifest_path_str = + base::string16 manifest_path_str = GetManifestPath(native_host_name_wide, KEY_WOW64_32KEY); if (manifest_path_str.empty()) manifest_path_str = GetManifestPath(native_host_name_wide, KEY_WOW64_64KEY); @@ -91,9 +91,9 @@ bool NativeProcessLauncher::LaunchNativeProcess( uint64 pipe_name_token; crypto::RandBytes(&pipe_name_token, sizeof(pipe_name_token)); - string16 out_pipe_name = base::StringPrintf( + base::string16 out_pipe_name = base::StringPrintf( L"\\\\.\\pipe\\chrome.nativeMessaging.out.%llx", pipe_name_token); - string16 in_pipe_name = base::StringPrintf( + base::string16 in_pipe_name = base::StringPrintf( L"\\\\.\\pipe\\chrome.nativeMessaging.in.%llx", pipe_name_token); // Create the pipes to read and write from. @@ -127,9 +127,9 @@ bool NativeProcessLauncher::LaunchNativeProcess( scoped_ptr<wchar_t[]> comspec(new wchar_t[comspec_length]); ::GetEnvironmentVariable(L"COMSPEC", comspec.get(), comspec_length); - string16 command_line_string = command_line.GetCommandLineString(); + base::string16 command_line_string = command_line.GetCommandLineString(); - string16 command = base::StringPrintf( + base::string16 command = base::StringPrintf( L"%ls /c %ls < %ls > %ls", comspec.get(), command_line_string.c_str(), in_pipe_name.c_str(), out_pipe_name.c_str()); |