summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/autocomplete_text_field.mm
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 00:22:57 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 00:22:57 +0000
commit21449b3dc0ac325ab90bc1418bab8a7dda947f3e (patch)
tree2168f112369b027ed11f8c41d80b92ec7abe3b3a /chrome/browser/cocoa/autocomplete_text_field.mm
parent65137ae3ba7912decf0a953721ad35e074195fe9 (diff)
downloadchromium_src-21449b3dc0ac325ab90bc1418bab8a7dda947f3e.zip
chromium_src-21449b3dc0ac325ab90bc1418bab8a7dda947f3e.tar.gz
chromium_src-21449b3dc0ac325ab90bc1418bab8a7dda947f3e.tar.bz2
Revert 29827 - Refactor securityicon code to a more general form, also more consistent with
the Windows implementation, in preparation for implementing page actions. BUG=14899, 22922, 12281 TEST=unit tests included Review URL: http://codereview.chromium.org/264037 TBR=pamg@google.com Review URL: http://codereview.chromium.org/333002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/autocomplete_text_field.mm')
-rw-r--r--chrome/browser/cocoa/autocomplete_text_field.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field.mm b/chrome/browser/cocoa/autocomplete_text_field.mm
index 0b17415..91ac998 100644
--- a/chrome/browser/cocoa/autocomplete_text_field.mm
+++ b/chrome/browser/cocoa/autocomplete_text_field.mm
@@ -143,11 +143,11 @@
return;
}
- // Check to see if the user clicked the security hint icon in the cell. If so,
- // we need to display the page info window.
- const NSRect hintIconFrame = [cell securityImageFrameForFrame:[self bounds]];
+ // Check to see if the user clicked the hint icon in the cell. If so, we need
+ // to display the page info window.
+ const NSRect hintIconFrame = [cell hintImageFrameForFrame:[self bounds]];
if (NSMouseInRect(location, hintIconFrame, [self isFlipped])) {
- [cell onSecurityIconMousePressed];
+ observer_->OnSecurityIconClicked();
return;
}