diff options
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/chrome_launcher_utils.cc | 6 | ||||
-rw-r--r-- | chrome_frame/chrome_tab.cc | 6 | ||||
-rw-r--r-- | chrome_frame/delete_chrome_history.cc | 3 | ||||
-rw-r--r-- | chrome_frame/simple_resource_loader.cc | 4 | ||||
-rw-r--r-- | chrome_frame/test/chrome_frame_test_utils.cc | 8 | ||||
-rw-r--r-- | chrome_frame/test/test_with_web_server.cc | 4 |
6 files changed, 16 insertions, 15 deletions
diff --git a/chrome_frame/chrome_launcher_utils.cc b/chrome_frame/chrome_launcher_utils.cc index 913ff14..1b5943a 100644 --- a/chrome_frame/chrome_launcher_utils.cc +++ b/chrome_frame/chrome_launcher_utils.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -9,7 +9,7 @@ #include "base/file_util.h" #include "base/logging.h" #include "base/path_service.h" -#include "base/win_util.h" +#include "base/win/windows_version.h" #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_switches.h" #include "chrome_frame/chrome_frame_automation.h" @@ -20,7 +20,7 @@ const wchar_t kLauncherExeBaseName[] = L"chrome_launcher.exe"; CommandLine* CreateLaunchCommandLine() { // Shortcut for OS versions that don't need the integrity broker. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) { + if (base::win::GetVersion() < base::win::VERSION_VISTA) { return new CommandLine(GetChromeExecutablePath()); } diff --git a/chrome_frame/chrome_tab.cc b/chrome_frame/chrome_tab.cc index e073676..013995d 100644 --- a/chrome_frame/chrome_tab.cc +++ b/chrome_frame/chrome_tab.cc @@ -22,7 +22,7 @@ #include "base/string_piece.h" #include "base/string_util.h" #include "base/sys_string_conversions.h" -#include "base/win_util.h" +#include "base/win/windows_version.h" #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_switches.h" #include "chrome/installer/util/google_update_settings.h" @@ -300,7 +300,7 @@ HRESULT RefreshElevationPolicy() { // The idea here is to try this out on chrome frame dev channel // and see if it produces a significant drift in startup numbers. HRESULT SetupRunOnce() { - if (win_util::GetWinVersion() >= win_util::WINVERSION_VISTA) + if (base::win::GetVersion() >= base::win::VERSION_VISTA) return S_OK; std::wstring channel_name; @@ -699,7 +699,7 @@ static bool SetOrDeleteMimeHandlerKey(bool set, HKEY root_key) { bool RegisterSecuredMimeHandler(bool enable, bool is_system) { if (!is_system) { return SetOrDeleteMimeHandlerKey(enable, HKEY_CURRENT_USER); - } else if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) { + } else if (base::win::GetVersion() < base::win::VERSION_VISTA) { return SetOrDeleteMimeHandlerKey(enable, HKEY_LOCAL_MACHINE); } diff --git a/chrome_frame/delete_chrome_history.cc b/chrome_frame/delete_chrome_history.cc index 1d58df9..5745c50 100644 --- a/chrome_frame/delete_chrome_history.cc +++ b/chrome_frame/delete_chrome_history.cc @@ -7,6 +7,7 @@ #include "chrome/browser/browsing_data_remover.h" +#include "base/win/windows_version.h" #include "chrome_frame/chrome_frame_activex.h" #include "chrome_frame/utils.h" @@ -65,7 +66,7 @@ STDMETHODIMP DeleteChromeHistory::DeleteBrowsingHistory(DWORD flags) { // effort to connect. Thus, we detect if we are in that circumstance and exit // silently. base::IntegrityLevel integrity_level; - if (win_util::GetWinVersion() >= win_util::WINVERSION_VISTA && + if (base::win::GetVersion() >= base::win::VERSION_VISTA && !base::GetProcessIntegrityLevel(base::GetCurrentProcessHandle(), &integrity_level)) { return E_UNEXPECTED; diff --git a/chrome_frame/simple_resource_loader.cc b/chrome_frame/simple_resource_loader.cc index 886d18e..e39087c 100644 --- a/chrome_frame/simple_resource_loader.cc +++ b/chrome_frame/simple_resource_loader.cc @@ -14,7 +14,7 @@ #include "base/i18n/rtl.h" #include "base/string_util.h" #include "base/utf_string_conversions.h" -#include "base/win_util.h" +#include "base/win/windows_version.h" const wchar_t kLocalesDirName[] = L"Locales"; @@ -114,7 +114,7 @@ bool SimpleResourceLoader::GetLocaleFilePath(const std::wstring& language, HINSTANCE SimpleResourceLoader::LoadLocaleDll(const FilePath& dll_path) { DWORD load_flags = 0; - if (win_util::GetWinVersion() >= win_util::WINVERSION_VISTA) { + if (base::win::GetVersion() >= base::win::VERSION_VISTA) { load_flags = LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE | LOAD_LIBRARY_AS_IMAGE_RESOURCE; } else { diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc index a9645ec..e98d353 100644 --- a/chrome_frame/test/chrome_frame_test_utils.cc +++ b/chrome_frame/test/chrome_frame_test_utils.cc @@ -21,6 +21,7 @@ #include "base/stringprintf.h" #include "base/utf_string_conversions.h" #include "base/win_util.h" +#include "base/win/windows_version.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_paths_internal.h" @@ -224,11 +225,10 @@ base::ProcessHandle LaunchIEOnVista(const std::wstring& url) { } base::ProcessHandle LaunchIE(const std::wstring& url) { - if (win_util::GetWinVersion() >= win_util::WINVERSION_VISTA) { + if (base::win::GetVersion() >= base::win::VERSION_VISTA) { return LaunchIEOnVista(url); - } else { - return LaunchExecutable(kIEImageName, url); } + return LaunchExecutable(kIEImageName, url); } int CloseAllIEWindows() { @@ -372,7 +372,7 @@ HRESULT LaunchIEAsComServer(IWebBrowser2** web_browser) { // This causes the IWebBrowser2 interface which is returned to be useless, // i.e it does not receive any events, etc. Our workaround for this is // to impersonate a low integrity token and then launch IE. - if (win_util::GetWinVersion() == win_util::WINVERSION_VISTA && + if (base::win::GetVersion() == base::win::VERSION_VISTA && GetInstalledIEVersion() == IE_7) { // Create medium integrity browser that will launch IE broker. ScopedComPtr<IWebBrowser2> medium_integrity_browser; diff --git a/chrome_frame/test/test_with_web_server.cc b/chrome_frame/test/test_with_web_server.cc index ad94c86..2ee8e17 100644 --- a/chrome_frame/test/test_with_web_server.cc +++ b/chrome_frame/test/test_with_web_server.cc @@ -9,7 +9,7 @@ #include "base/path_service.h" #include "base/stringprintf.h" #include "base/utf_string_conversions.h" -#include "base/win_util.h" +#include "base/win/windows_version.h" #include "chrome/common/chrome_switches.h" #include "chrome/installer/util/install_util.h" #include "chrome/installer/util/helper.h" @@ -868,7 +868,7 @@ const wchar_t kInstallFlowTestUrl[] = L"install_flow_test.html"; TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_InstallFlowTest) { - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) { + if (base::win::GetVersion() < base::win::VERSION_VISTA) { ScopedChromeFrameRegistrar::UnregisterAtPath( ScopedChromeFrameRegistrar::GetChromeFrameBuildPath().value()); |