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

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

Issue 685103004: Refactor chrome_launcher_support::GetAnyChromePath. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments. Created 5 years, 11 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 #ifndef CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ 5 #ifndef CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
6 #define CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ 6 #define CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
7 7
8 namespace base { 8 namespace base {
9 class FilePath; 9 class FilePath;
10 } 10 }
11 11
12 namespace chrome_launcher_support { 12 namespace chrome_launcher_support {
13 13
14 enum InstallationLevel { 14 enum InstallationLevel {
15 USER_LEVEL_INSTALLATION, 15 USER_LEVEL_INSTALLATION,
16 SYSTEM_LEVEL_INSTALLATION, 16 SYSTEM_LEVEL_INSTALLATION,
17 }; 17 };
18 18
19 // Returns the path to an installed chrome.exe at the specified level, if it can 19 // Returns the path to an installed chrome.exe at the specified level, if it can
20 // be found in the registry. Prefers the installer from a multi-install, but may 20 // be found in the registry. Prefers the installer from a multi-install, but may
21 // also return that of a single-install of Chrome if no multi-install exists. 21 // also return that of a single-install of Chrome if no multi-install exists.
22 base::FilePath GetChromePathForInstallationLevel(InstallationLevel level); 22 base::FilePath GetChromePathForInstallationLevel(InstallationLevel level);
23 23
24 // Returns the path to an installed chrome.exe, or an empty path. Prefers a 24 // Returns the path to an installed chrome.exe, or an empty path. Prefers a
25 // system-level installation to a user-level installation. Uses the registry to 25 // system-level installation to a user-level installation. Uses the registry to
26 // identify a Chrome installation location. The file path returned (if any) is 26 // identify a Chrome installation location. If |is_canary| is true, gets the
27 // guaranteed to exist. 27 // path to the SxS (Canary) version of chrome.exe. The file path returned (if
28 base::FilePath GetAnyChromePath();
29
30 // Returns the path to an installed SxS chrome.exe, or an empty path. Prefers a
31 // user-level installation to a system-level installation. Uses the registry to
32 // identify a Chrome Canary installation location. The file path returned (if
33 // any) is guaranteed to exist. 28 // any) is guaranteed to exist.
34 base::FilePath GetAnyChromeSxSPath(); 29 base::FilePath GetAnyChromePath(bool is_canary);
grt (UTC plus 2) 2015/01/09 17:45:28 Now that I think about it, |is_canary| is a bad na
Matt Giuca 2015/01/12 06:54:26 OK I wasn't aware of that distinction. Updated the
35 30
36 } // namespace chrome_launcher_support 31 } // namespace chrome_launcher_support
37 32
38 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ 33 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698