summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 20:21:40 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 20:21:40 +0000
commit9bb732d86bc65d689de5a2d752dc19c5e43351aa (patch)
tree9fba110c3d08b9ceba4c5468a0fcf0f3ba7dd1bd /chrome/browser/cocoa
parent02b189da70f3c8419f43cc37780dd0d5d2f4b190 (diff)
downloadchromium_src-9bb732d86bc65d689de5a2d752dc19c5e43351aa.zip
chromium_src-9bb732d86bc65d689de5a2d752dc19c5e43351aa.tar.gz
chromium_src-9bb732d86bc65d689de5a2d752dc19c5e43351aa.tar.bz2
Revert 25478 which was causing Mac valgrind failures.
TBR=shess git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r--chrome/browser/cocoa/autocomplete_text_field_cell.mm11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field_cell.mm b/chrome/browser/cocoa/autocomplete_text_field_cell.mm
index e065c14..7125774 100644
--- a/chrome/browser/cocoa/autocomplete_text_field_cell.mm
+++ b/chrome/browser/cocoa/autocomplete_text_field_cell.mm
@@ -245,17 +245,18 @@ const NSInteger kBaselineOffset = 4;
NSMinX(textFrame) - x,
cellFrame.size.height - 2 * kKeywordYInset));
- // Draw the token rectangle with rounded corners.
+ // Draw a token rectangle with rounded corners.
NSRect frame(NSInsetRect(infoFrame, 0.5, 0.5));
NSBezierPath* path =
[NSBezierPath bezierPathWithRoundedRect:frame xRadius:4.0 yRadius:4.0];
- // Matches the color of the highlighted line in the popup.
- [[NSColor selectedControlColor] set];
+ [[NSColor controlColor] set];
[path fill];
- // Border around token rectangle, match focus ring's inner color.
- [[[NSColor keyboardFocusIndicatorColor] colorWithAlphaComponent:0.5] set];
+ GTMTheme *theme = [controlView gtm_theme];
+ NSColor* stroke = [theme strokeColorForStyle:GTMThemeStyleToolBarButton
+ state:YES];
+ [stroke setStroke];
[path setLineWidth:1.0];
[path stroke];