From b0f5f23da2bbc6f60afe0b51b669a397903f6ee8 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Thu, 17 Dec 2009 19:47:40 +0000 Subject: Remove unnecessary super call in a delegate method. BUG=30154 TEST=10.6 SDK build Review URL: http://codereview.chromium.org/491059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34863 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/autocomplete_text_field.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome/browser/cocoa/autocomplete_text_field.mm') diff --git a/chrome/browser/cocoa/autocomplete_text_field.mm b/chrome/browser/cocoa/autocomplete_text_field.mm index 797fb50..a067fdc 100644 --- a/chrome/browser/cocoa/autocomplete_text_field.mm +++ b/chrome/browser/cocoa/autocomplete_text_field.mm @@ -218,10 +218,12 @@ } - (BOOL)textView:(NSTextView*)textView doCommandBySelector:(SEL)cmd { + // TODO(shess): Review code for cases where we're fruitlessly attempting to + // work in spite of not having an observer_. if (observer_ && observer_->OnDoCommandBySelector(cmd)) { return YES; } - return [super textView:textView doCommandBySelector:cmd]; + return NO; } - (void)windowDidResignKey:(NSNotification*)notification { -- cgit v1.1