diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 02:41:16 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 02:41:16 +0000 |
commit | 9561bc912c4334c9b5ca619d08a106fa381993d5 (patch) | |
tree | f45380b716a54dbaf4071eb2615f9f0ceb9b2ce9 /chrome/browser/shell_integration.h | |
parent | 64681e22e73e3325e06e6e5e8ef81995b4a306cc (diff) | |
download | chromium_src-9561bc912c4334c9b5ca619d08a106fa381993d5.zip chromium_src-9561bc912c4334c9b5ca619d08a106fa381993d5.tar.gz chromium_src-9561bc912c4334c9b5ca619d08a106fa381993d5.tar.bz2 |
Infrastructure to improve app mode stub <-> Chrome main communication.
We currently modify the command line to communicate from the launcher to ChromeMain(), this seems like a bad idea in the long run. The aim of this CL is to provide infrastructure to help us going forward.
* Add an IsRunningInAppMode() function we an use to determine that we're using app mode rather than having each callsite check the command line.
* Mac: Add a function to allow access to the ChromeAppModeInfo struct from anywhere in the code, so we don't need to plumb it down to individual callsites.
TEST=Covered by existing tests.
BUG=None
Review URL: http://codereview.chromium.org/9618021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_integration.h')
-rw-r--r-- | chrome/browser/shell_integration.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/shell_integration.h b/chrome/browser/shell_integration.h index 8083b6a..fa9c1ad 100644 --- a/chrome/browser/shell_integration.h +++ b/chrome/browser/shell_integration.h @@ -13,7 +13,6 @@ #include "base/memory/ref_counted.h" #include "base/string16.h" #include "googleurl/src/gurl.h" -#include "third_party/skia/include/core/SkBitmap.h" #include "ui/gfx/image/image.h" class CommandLine; @@ -93,6 +92,15 @@ class ShellIntegration { bool create_in_quick_launch_bar; }; + // Data that needs to be passed between the app launcher stub and Chrome. + struct AppModeInfo { + }; + static void SetAppModeInfo(const AppModeInfo* info); + static const AppModeInfo* AppModeInfo(); + + // Is the current instance of Chrome running in App mode. + bool IsRunningInAppMode(); + // Set up command line arguments for launching a URL or an app. // The new command line reuses the current process's user data directory (and // login profile, for ChromeOS). |