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

Side by Side Diff: chrome/installer/launcher_support/chrome_launcher_support.cc

Issue 14031025: Implementing unified Chrome / App Launcher flow, and migrating old stand-alone App Launcher. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/installer/launcher_support/chrome_launcher_support.h" 5 #include "chrome/installer/launcher_support/chrome_launcher_support.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <tchar.h> 8 #include <tchar.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "base/version.h"
15 #include "base/win/registry.h" 16 #include "base/win/registry.h"
16 17
17 #ifndef OFFICIAL_BUILD 18 #ifndef OFFICIAL_BUILD
18 #include "base/path_service.h" 19 #include "base/path_service.h"
19 #endif 20 #endif
20 21
21 namespace chrome_launcher_support { 22 namespace chrome_launcher_support {
22 23
23 namespace { 24 namespace {
24 25
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 209
209 bool IsAppLauncherPresent() { 210 bool IsAppLauncherPresent() {
210 return GetAppLauncherInstallationState() != NOT_INSTALLED; 211 return GetAppLauncherInstallationState() != NOT_INSTALLED;
211 } 212 }
212 213
213 bool IsChromeBrowserPresent() { 214 bool IsChromeBrowserPresent() {
214 return IsProductInstalled(USER_LEVEL_INSTALLATION, kBrowserAppGuid) || 215 return IsProductInstalled(USER_LEVEL_INSTALLATION, kBrowserAppGuid) ||
215 IsProductInstalled(SYSTEM_LEVEL_INSTALLATION, kBrowserAppGuid); 216 IsProductInstalled(SYSTEM_LEVEL_INSTALLATION, kBrowserAppGuid);
216 } 217 }
217 218
219 bool HasLegacyAppHostExe(const base::Version& version) {
220 return version.IsOlderThan("28.0.1488.0");
221 }
222
218 } // namespace chrome_launcher_support 223 } // namespace chrome_launcher_support
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698