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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl.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/ui/startup/startup_browser_creator_impl.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
index ae3f329de447157c72f177c76ac91996848c895e..d089d9befa90047e3c3c29c858a99b5b03cc2158 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
@@ -158,12 +158,8 @@ LaunchMode GetLaunchShortcutKind() {
return LM_SHORTCUT_NONAME;
base::string16 shortcut(si.lpTitle);
// The windows quick launch path is not localized.
- if (shortcut.find(L"\\Quick Launch\\") != base::string16::npos) {
- if (base::win::GetVersion() >= base::win::VERSION_WIN7)
- return LM_SHORTCUT_TASKBAR;
- else
- return LM_SHORTCUT_QUICKLAUNCH;
- }
+ if (shortcut.find(L"\\Quick Launch\\") != base::string16::npos)
+ return LM_SHORTCUT_TASKBAR;
std::unique_ptr<base::Environment> env(base::Environment::Create());
std::string appdata_path;
env->GetVar("USERPROFILE", &appdata_path);

Powered by Google App Engine
This is Rietveld 408576698