| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
| 6 #define CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
| 7 #pragma once |
| 8 |
| 9 class FilePath; |
| 10 |
| 11 namespace chrome_launcher_support { |
| 12 |
| 13 enum InstallationLevel { |
| 14 USER_LEVEL_INSTALLATION, |
| 15 SYSTEM_LEVEL_INSTALLATION |
| 16 }; |
| 17 |
| 18 // Returns the path to an installed chrome.exe, or an empty path. Prefers a |
| 19 // system-level installation to a user-level installation. Uses Omaha client |
| 20 // state to identify a Chrome installation location. |
| 21 // In non-official builds, to ease development, this will first look for a |
| 22 // chrome.exe in the same directory as the current executable. |
| 23 FilePath GetAnyChromePath(); |
| 24 |
| 25 // Returns the path to an installed chrome.exe at the specified level, if it can |
| 26 // be found via Omaha client state. |
| 27 FilePath GetChromePathForInstallationLevel(InstallationLevel level); |
| 28 |
| 29 } // namespace chrome_launcher_support |
| 30 |
| 31 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
| OLD | NEW |