summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/autocomplete_text_field.mm
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 19:47:40 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 19:47:40 +0000
commitb0f5f23da2bbc6f60afe0b51b669a397903f6ee8 (patch)
treee7495725b404966849423754240878c2dcb4eeaa /chrome/browser/cocoa/autocomplete_text_field.mm
parentad6530c6ff2eca922cde2aaf47f0fb39a0e78051 (diff)
downloadchromium_src-b0f5f23da2bbc6f60afe0b51b669a397903f6ee8.zip
chromium_src-b0f5f23da2bbc6f60afe0b51b669a397903f6ee8.tar.gz
chromium_src-b0f5f23da2bbc6f60afe0b51b669a397903f6ee8.tar.bz2
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
Diffstat (limited to 'chrome/browser/cocoa/autocomplete_text_field.mm')
-rw-r--r--chrome/browser/cocoa/autocomplete_text_field.mm4
1 files changed, 3 insertions, 1 deletions
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 {