diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-14 22:55:48 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-14 22:55:48 +0000 |
commit | ecd4f7965219baf3c6546fad19e63cbda622edb7 (patch) | |
tree | 799434a840aec9b090f9341d6adff2a5e5f2aa47 /chrome/browser/cocoa | |
parent | 3ed957e0fe0ac13eba0923a9e92e11743de4a2a0 (diff) | |
download | chromium_src-ecd4f7965219baf3c6546fad19e63cbda622edb7.zip chromium_src-ecd4f7965219baf3c6546fad19e63cbda622edb7.tar.gz chromium_src-ecd4f7965219baf3c6546fad19e63cbda622edb7.tar.bz2 |
[Mac] Update location-bar icon as user types.
Update in |OnChanged()|, just like Windows.
BUG=41362
TEST=Type "www.google.com". You should have a globe icon.
TEST=Add a space after first 'w'. Should get search icon.
TEST=Generally, icon will switch around as you type.
Review URL: http://codereview.chromium.org/1640012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44572 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r-- | chrome/browser/cocoa/location_bar_view_mac.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/location_bar_view_mac.mm b/chrome/browser/cocoa/location_bar_view_mac.mm index 9c16199..817cc3e 100644 --- a/chrome/browser/cocoa/location_bar_view_mac.mm +++ b/chrome/browser/cocoa/location_bar_view_mac.mm @@ -322,6 +322,9 @@ void LocationBarViewMac::OnChangedImpl(AutocompleteTextField* field, } void LocationBarViewMac::OnChanged() { + // Update the location-bar icon. + SetIcon(edit_view_->GetIcon()); + // Unfortunately, the unit-test Profile doesn't have the right stuff // setup to do what GetKeywordName() needs to do. So do that out // here where we have a Profile and pass it into OnChangedImpl(). |