Commit fbcfb844 authored by dconnelly's avatar dconnelly Committed by Commit bot

Fix tracking area initialization for the mac password bubble.

It turns out specifying a "when" option is required, or it throws an
exception :(

BUG=

Review URL: https://codereview.chromium.org/512683002

Cr-Commit-Position: refs/heads/master@{#292153}
parent dfb32745
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment