| 259 | } |
| 260 | |
| 261 | void BrowserFactory::LaunchBrowserUsingIELaunchURL(PROCESS_INFORMATION* proc_info, |
| 262 | std::string* error_message) { |
| 263 | LOG(TRACE) << "Entering BrowserFactory::LaunchBrowserUsingIELaunchURL"; |
| 264 | LOG(DEBUG) << "Starting IE using the IELaunchURL API"; |
| 265 | HRESULT launch_result = ::IELaunchURL(this->initial_browser_url_.c_str(), |
| 266 | proc_info, |
| 267 | NULL); |
| 268 | if (FAILED(launch_result)) { |
| 269 | LOGHR(WARN, launch_result) << "Error using IELaunchURL to start IE"; |
| 270 | std::wstring hresult_msg = _com_error(launch_result).ErrorMessage(); |
| 271 | *error_message = StringUtilities::Format(IELAUNCHURL_ERROR_MESSAGE, |
| 272 | launch_result, |
| 273 | StringUtilities::ToString(hresult_msg).c_str(), |
| 274 | this->initial_browser_url().c_str()); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | bool BrowserFactory::IsCreateProcessApiAvailable() { |
| 279 | LOG(TRACE) << "Entering BrowserFactory::IsCreateProcessApiAvailable"; |
no test coverage detected