Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1093)

Unified Diff: chrome/browser/jumplist_win.cc

Issue 3823002: Move windows version-related stuff out of base/win_util and into base/win/win... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/jumplist_win.cc
===================================================================
--- chrome/browser/jumplist_win.cc (revision 62510)
+++ chrome/browser/jumplist_win.cc (working copy)
@@ -21,7 +21,7 @@
#include "base/string_util.h"
#include "base/thread.h"
#include "base/utf_string_conversions.h"
-#include "base/win_util.h"
+#include "base/win/windows_version.h"
#include "chrome/browser/browser_thread.h"
#include "chrome/browser/favicon_service.h"
#include "chrome/browser/history/history.h"
@@ -390,7 +390,7 @@
// JumpList is implemented only on Windows 7 or later.
// So, we should return now when this function is called on earlier versions
// of Windows.
- if (win_util::GetWinVersion() < win_util::WINVERSION_WIN7)
+ if (base::win::GetVersion() < base::win::VERSION_WIN7)
return true;
// Create an ICustomDestinationList object and attach it to our application.
@@ -579,7 +579,7 @@
// static
bool JumpList::Enabled() {
- return (win_util::GetWinVersion() >= win_util::WINVERSION_WIN7 &&
+ return (base::win::GetVersion() >= base::win::VERSION_WIN7 &&
!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableCustomJumpList));
}
@@ -590,7 +590,7 @@
// When we add this object to the observer list, we save the pointer to this
// TabRestoreService object. This pointer is used when we remove this object
// from the observer list.
- if (win_util::GetWinVersion() < win_util::WINVERSION_WIN7 || !profile)
+ if (base::win::GetVersion() < base::win::VERSION_WIN7 || !profile)
return false;
TabRestoreService* tab_restore_service = profile->GetTabRestoreService();

Powered by Google App Engine
This is Rietveld 408576698