Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7494)

Unified Diff: chrome/browser/ui/cocoa/passwords/manage_password_item_view_controller.mm

Issue 512683002: Fix tracking area initialization for the mac password bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/passwords/manage_password_item_view_controller.mm
diff --git a/chrome/browser/ui/cocoa/passwords/manage_password_item_view_controller.mm b/chrome/browser/ui/cocoa/passwords/manage_password_item_view_controller.mm
index f2a4b76414d3985662e1b926ec776491832c6bc9..eaab4fcbb3d05eabbcfbb3dccc8ac61870b44cf1 100644
--- a/chrome/browser/ui/cocoa/passwords/manage_password_item_view_controller.mm
+++ b/chrome/browser/ui/cocoa/passwords/manage_password_item_view_controller.mm
@@ -421,7 +421,8 @@ NSSecureTextField* PasswordLabel(const base::string16& text) {
[super updateTrackingAreas];
if (trackingArea_.get())
[self removeTrackingArea:trackingArea_.get()];
- NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited;
+ NSTrackingAreaOptions options =
+ NSTrackingMouseEnteredAndExited | NSTrackingActiveInKeyWindow;
trackingArea_.reset([[CrTrackingArea alloc] initWithRect:[self bounds]
options:options
owner:self
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698