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

Unified Diff: chrome/browser/shell_integration_win.cc

Issue 2909943003: Removing useless Win7 checks + standardize its use (Closed)
Patch Set: Fix unreachable code 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 06dbc42d025ac612636b61e19ce233ebdeec3f5f..5634a67af07273bd8f218f8b2ab848e293cac000 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -728,9 +728,6 @@ base::string16 GetChromiumModelIdForProfile(
}
void MigrateTaskbarPins() {
- if (base::win::GetVersion() < base::win::VERSION_WIN7)
- return;
-
// This needs to happen eventually (e.g. so that the appid is fixed and the
// run-time Chrome icon is merged with the taskbar shortcut), but this is not
// urgent and shouldn't delay Chrome startup.
@@ -749,8 +746,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