summaryrefslogtreecommitdiffstats
path: root/chrome/browser/shell_integration.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 22:08:40 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 22:08:40 +0000
commitc90ce8463d6e839010bf0b17ef1b4c0c54c8f067 (patch)
tree6eeec3cca3c6780abf4473557047548832c613dc /chrome/browser/shell_integration.cc
parent50bd0c732369a1e179a2691b24049780436b9a4d (diff)
downloadchromium_src-c90ce8463d6e839010bf0b17ef1b4c0c54c8f067.zip
chromium_src-c90ce8463d6e839010bf0b17ef1b4c0c54c8f067.tar.gz
chromium_src-c90ce8463d6e839010bf0b17ef1b4c0c54c8f067.tar.bz2
Shorten several apps-related flags. "256 characters should be enough for anyone's shortcut flags!"
Review URL: http://codereview.chromium.org/1991009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_integration.cc')
-rw-r--r--chrome/browser/shell_integration.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc
index 9590cbb..23d9fcb 100644
--- a/chrome/browser/shell_integration.cc
+++ b/chrome/browser/shell_integration.cc
@@ -39,11 +39,10 @@ std::string ShellIntegration::GetCommandLineArgumentsCommon(const GURL& url,
// If |extension_app_id| is present, we use the kAppId switch rather than
// the kApp switch (the launch url will be read from the extension app
// during launch.
- if (cmd.HasSwitch(switches::kEnableExtensionApps) &&
- !extension_app_id.empty()) {
+ if (cmd.HasSwitch(switches::kEnableApps) && !extension_app_id.empty()) {
arguments_w += std::wstring(L"--") + ASCIIToWide(switches::kAppId) +
L"=\"" + ASCIIToWide(UTF16ToASCII(extension_app_id)) + L"\" --" +
- ASCIIToWide(switches::kEnableExtensionApps);
+ ASCIIToWide(switches::kEnableApps);
} else {
// Use '--app=url' instead of just 'url' to launch the browser with minimal
// chrome.