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

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

Issue 10546149: Factor out logic to find chrome.exe from Omaha client state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move launcher_support under chrome/installer. Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
(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 Chrome installations, but will fall back to an unregistered
21 // installation in DIR_PROGRAM_FILES (according to PathService) as well.
22 FilePath GetAnyChromePath();
23
24 // Returns the path to an installed chrome.exe at the specified level, if it can
25 // be found via Omaha client state.
26 FilePath GetChromePathForInstallationLevel(InstallationLevel level);
27
28 } // namespace chrome_launcher_support
29
30 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698