summaryrefslogtreecommitdiffstats
path: root/chrome/browser/app_controller_mac.mm
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 22:40:02 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 22:40:02 +0000
commitd9d101d23238d9734b5e536b8f54f62e717a70c6 (patch)
treeed1969a8785c2b9f297adcd594839914db5e7b2c /chrome/browser/app_controller_mac.mm
parentf5cde2b583d923436f728660e18e181f83cfa602 (diff)
downloadchromium_src-d9d101d23238d9734b5e536b8f54f62e717a70c6.zip
chromium_src-d9d101d23238d9734b5e536b8f54f62e717a70c6.tar.gz
chromium_src-d9d101d23238d9734b5e536b8f54f62e717a70c6.tar.bz2
Revert 26016 - valgrind leak -
Add "New Window" and "New Incognito Window" items to the Dock Menu. Add a unit test module for AppController with a simple DockMenu test. BUG=none TEST=none Review URL: http://codereview.chromium.org/199031 TBR=sgk@google.com Review URL: http://codereview.chromium.org/196101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.mm')
-rw-r--r--chrome/browser/app_controller_mac.mm27
1 files changed, 0 insertions, 27 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index fcefabd..e3f88e9 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -48,7 +48,6 @@
- (void)windowLayeringDidChange:(NSNotification*)inNotification;
- (BOOL)userWillWaitForInProgressDownloads:(int)downloadCount;
- (BOOL)shouldQuitWithInProgressDownloads;
-- (NSMenu*)applicationDockMenu:(NSApplication*)sender;
@end
@implementation AppController
@@ -667,30 +666,4 @@
[aboutController_ showWindow:self];
}
-- (NSMenu*)applicationDockMenu:(id)sender {
- NSMenu* result = [[[NSMenu alloc] initWithTitle: @""] autorelease];
- NSString* titleStr;
- id item;
-
- titleStr = base::SysWideToNSString(
- l10n_util::GetString(IDS_NEW_WINDOW_MAC));
- item = [[[NSMenuItem alloc] initWithTitle:titleStr
- action:@selector(commandDispatch:)
- keyEquivalent:@""] autorelease];
- [item setTarget:self];
- [item setTag:IDC_NEW_WINDOW];
- [result addItem:item];
-
- titleStr = base::SysWideToNSString(
- l10n_util::GetString(IDS_NEW_INCOGNITO_WINDOW_MAC));
- item = [[[NSMenuItem alloc] initWithTitle:titleStr
- action:@selector(commandDispatch:)
- keyEquivalent:@""] autorelease];
- [item setTarget:self];
- [item setTag:IDC_NEW_INCOGNITO_WINDOW];
- [result addItem:item];
-
- return result;
-}
-
@end