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

Unified Diff: chrome/browser/shell_integration.cc

Issue 9618021: Infrastructure to improve app mode stub <-> Chrome main communication. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix review comments. Created 8 years, 9 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/browser/shell_integration.h ('k') | chrome/browser/web_applications/web_app_mac_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « chrome/browser/shell_integration.h ('k') | chrome/browser/web_applications/web_app_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698