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

Unified Diff: chrome/installer/launcher_support/chrome_launcher_support.h

Issue 11054006: Make application shortcuts point to app_host.exe, install App Host during app installation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moving quick-enable-app-host feature; adding App Host install code for unpacked extension installer. Created 8 years, 2 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
index 1051a244586e0e337bf2d23253e99904492080f2..30f735330553e88a1158c0d2cc412528044f958a 100644
--- a/chrome/installer/launcher_support/chrome_launcher_support.h
+++ b/chrome/installer/launcher_support/chrome_launcher_support.h
@@ -5,6 +5,8 @@
#ifndef CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
#define CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
+#include "base/string16.h"
+
class FilePath;
namespace chrome_launcher_support {
@@ -24,6 +26,10 @@ FilePath GetSetupExeForInstallationLevel(InstallationLevel level);
// exists.
FilePath GetChromePathForInstallationLevel(InstallationLevel level);
+// Returns the path to an installed app_host.exe at the specified level, if
+// it can be found via Omaha client state.
+FilePath GetAppHostPathForInstallationLevel(InstallationLevel level);
+
// 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.
@@ -32,6 +38,23 @@ FilePath GetChromePathForInstallationLevel(InstallationLevel level);
// The file path returned (if any) is guaranteed to exist.
FilePath GetAnyChromePath();
+// 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.
+// The file path returned (if any) is guaranteed to exist.
+// In non-official builds, to ease development, this will first look for a
+// chrome.exe in the same directory as the current executable.
+// The file path returned (if any) is guaranteed to exist.
+FilePath GetAnyAppHostPath();
+
+// Returns true if App Host is installed (system-level or user-level),
+// or in the same directory as the current executable.
+bool IsAppHostPresent();
+
+// Reads the path to app_host.exe from the value "UninstallString" within the
+// App Host's "ClientState" registry key.
+string16 GetQuickEnableAppHostCommand(InstallationLevel level);
+
} // namespace chrome_launcher_support
#endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_

Powered by Google App Engine
This is Rietveld 408576698