Index: chrome/browser/shell_integration.cc |
diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc |
index c7362d69020eb153a871f827e24c58a55e3eefb3..e3eae8167adfe1434dc27ba4912aa93a41719dfa 100644 |
--- a/chrome/browser/shell_integration.cc |
+++ b/chrome/browser/shell_integration.cc |
@@ -33,6 +33,23 @@ ShellIntegration::ShortcutInfo::ShortcutInfo() |
ShellIntegration::ShortcutInfo::~ShortcutInfo() {} |
+static const struct ShellIntegration::AppModeInfo* gAppModeInfo = NULL; |
+ |
+// static |
+void ShellIntegration::SetAppModeInfo(const struct AppModeInfo* info) { |
+ gAppModeInfo = info; |
+} |
+ |
+// static |
+const struct ShellIntegration::AppModeInfo* ShellIntegration::AppModeInfo() { |
+ return gAppModeInfo; |
+} |
+ |
+// static |
+bool ShellIntegration::IsRunningInAppMode() { |
+ return gAppModeInfo != NULL; |
+} |
+ |
// static |
CommandLine ShellIntegration::CommandLineArgsForLauncher( |
const GURL& url, |