| 239 | } |
| 240 | |
| 241 | bool BrowserFactory::IsIELaunchURLAvailable() { |
| 242 | LOG(TRACE) << "Entering BrowserFactory::IsIELaunchURLAvailable"; |
| 243 | bool api_is_available = false; |
| 244 | HMODULE library_handle = ::LoadLibrary(IEFRAME_LIBRARY_NAME); |
| 245 | if (library_handle != NULL) { |
| 246 | FARPROC proc_address = 0; |
| 247 | proc_address = ::GetProcAddress(library_handle, IELAUNCHURL_FUNCTION_NAME); |
| 248 | if (proc_address == NULL || proc_address == 0) { |
| 249 | LOGERR(DEBUG) << "Unable to get address of " << IELAUNCHURL_FUNCTION_NAME |
| 250 | << " method in " << IEFRAME_LIBRARY_NAME; |
| 251 | } else { |
| 252 | api_is_available = true; |
| 253 | } |
| 254 | ::FreeLibrary(library_handle); |
| 255 | } else { |
| 256 | LOGERR(DEBUG) << "Unable to load library " << IEFRAME_LIBRARY_NAME; |
| 257 | } |
| 258 | return api_is_available; |
| 259 | } |
| 260 | |
| 261 | void BrowserFactory::LaunchBrowserUsingIELaunchURL(PROCESS_INFORMATION* proc_info, |
| 262 | std::string* error_message) { |
no test coverage detected