diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 13:19:05 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 13:19:05 +0000 |
commit | ad2a3ded81c49ee89b44f6b544d21ff617c935bf (patch) | |
tree | e83f889f5b17ad81a5e177008df86a0ae9122e4d /chrome/browser/app_controller_mac.mm | |
parent | c0f2f52ebc9d7b41b79ea203a2cfae272c00b937 (diff) | |
download | chromium_src-ad2a3ded81c49ee89b44f6b544d21ff617c935bf.zip chromium_src-ad2a3ded81c49ee89b44f6b544d21ff617c935bf.tar.gz chromium_src-ad2a3ded81c49ee89b44f6b544d21ff617c935bf.tar.bz2 |
Implement about:labs
Tabpose is currently the only lab on mac, tabs-on-left the only lab on windows. Nothing for linux yet.
BUG=53399
TEST=Go to about:labs. Should have one feature on windows and osx each, none on linux yet. about:labs should not be visible on the stable channel. Labs that were enabled on the dev channel should not be enabled on the stable channel. about:labs in chromeos should still work (they use a different implementation)
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57635
Review URL: http://codereview.chromium.org/3152055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.mm')
-rw-r--r-- | chrome/browser/app_controller_mac.mm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm index c6cf443..eb4452c 100644 --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm @@ -220,10 +220,6 @@ void RecordLastRunAppBundlePath() { if (parsed_command_line.HasSwitch(switches::kActivateOnLaunch)) { [NSApp activateIgnoringOtherApps:YES]; } - - if (!parsed_command_line.HasSwitch(switches::kEnableExposeForTabs)) { - [tabposeMenuItem_ setHidden:YES]; - } } // (NSApplicationDelegate protocol) This is the Apple-approved place to override @@ -501,6 +497,11 @@ void RecordLastRunAppBundlePath() { [self openUrls:startupUrls_]; [self clearStartupUrls]; } + + const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); + if (!parsed_command_line.HasSwitch(switches::kEnableExposeForTabs)) { + [tabposeMenuItem_ setHidden:YES]; + } } // This is called after profiles have been loaded and preferences registered. |