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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/installer/launcher_support/chrome_launcher_support.h
diff --git a/chrome/installer/launcher_support/chrome_launcher_support.h b/chrome/installer/launcher_support/chrome_launcher_support.h
new file mode 100644
index 0000000000000000000000000000000000000000..35b13499ac961d48b02ce9328feb7dee1533166c
--- /dev/null
+++ b/chrome/installer/launcher_support/chrome_launcher_support.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
+#define CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
+#pragma once
+
+class FilePath;
+
+namespace chrome_launcher_support {
+
+enum InstallationLevel {
+ USER_LEVEL_INSTALLATION,
+ SYSTEM_LEVEL_INSTALLATION
+};
+
+// Returns the path to an installed chrome.exe, or an empty path. Prefers a
+// system-level installation to a user-level installation. Uses Omaha client
+// state to identify Chrome installations, but will fall back to an unregistered
+// installation in DIR_PROGRAM_FILES (according to PathService) as well.
+FilePath GetAnyChromePath();
+
+// Returns the path to an installed chrome.exe at the specified level, if it can
+// be found via Omaha client state.
+FilePath GetChromePathForInstallationLevel(InstallationLevel level);
+
+} // namespace chrome_launcher_support
+
+#endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_

Powered by Google App Engine
This is Rietveld 408576698