| 1369 | } |
| 1370 | |
| 1371 | void BrowserFactory::GetIEVersion() { |
| 1372 | LOG(TRACE) << "Entering BrowserFactory::GetIEVersion"; |
| 1373 | |
| 1374 | std::string ie_version = FileUtilities::GetFileVersion(this->ie_executable_location_); |
| 1375 | |
| 1376 | if (ie_version.size() == 0) { |
| 1377 | // 64-bit Windows 8 has a bug where it does not return the executable location properly |
| 1378 | this->ie_major_version_ = -1; |
| 1379 | LOG(WARN) << "Couldn't find IE version for executable " |
| 1380 | << LOGWSTRING(this->ie_executable_location_) |
| 1381 | << ", falling back to " |
| 1382 | << this->ie_major_version_; |
| 1383 | return; |
| 1384 | } |
| 1385 | |
| 1386 | std::stringstream version_stream(ie_version); |
| 1387 | version_stream >> this->ie_major_version_; |
| 1388 | } |
| 1389 | |
| 1390 | bool BrowserFactory::ProtectedModeSettingsAreValid() { |
| 1391 | LOG(TRACE) << "Entering BrowserFactory::ProtectedModeSettingsAreValid"; |
no test coverage detected