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

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: Use chrome from current dir in development. 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
« no previous file with comments | « chrome/installer/gcapi/gcapi.cc ('k') | chrome/installer/launcher_support/chrome_launcher_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..50c72d33fed2d06f0cef7a82f9e8866745ab4bfa
--- /dev/null
+++ b/chrome/installer/launcher_support/chrome_launcher_support.h
@@ -0,0 +1,31 @@
+// 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 a Chrome installation location.
+// In non-official builds, to ease development, this will first look for a
+// chrome.exe in the same directory as the current executable.
+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_
« no previous file with comments | « chrome/installer/gcapi/gcapi.cc ('k') | chrome/installer/launcher_support/chrome_launcher_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698