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

Unified Diff: chrome/browser/shell_integration_win.cc

Issue 2909943003: Removing useless Win7 checks + standardize its use (Closed)
Patch Set: Fix reversed conditionnal Created 3 years, 7 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/shell_integration_win.cc
diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc
index c8fc1ac86bd11b43b26bea15402ef5ec15fdea61..fb717d2b0b132f9226416566059ab1d3920c3f9f 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -746,9 +746,6 @@ base::string16 GetChromiumModelIdForProfile(
}
void MigrateTaskbarPins() {
- if (base::win::GetVersion() < base::win::VERSION_WIN7)
- return;
-
// This needs to happen (e.g. so that the appid is fixed and the
// run-time Chrome icon is merged with the taskbar shortcut), but it is not an
// urgent task.
@@ -765,8 +762,6 @@ void GetIsPinnedToTaskbarState(
int MigrateShortcutsInPathInternal(const base::FilePath& chrome_exe,
const base::FilePath& path) {
- DCHECK(base::win::GetVersion() >= base::win::VERSION_WIN7);
-
// Enumerate all pinned shortcuts in the given path directly.
base::FileEnumerator shortcuts_enum(
path, false, // not recursive

Powered by Google App Engine
This is Rietveld 408576698