summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/location_bar
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-06 16:38:53 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-06 16:38:53 +0000
commit3524260667759b3f2b896c1456eeae26b0e6793d (patch)
treeac58e0bcd6cdcc4637439bad2bde209fe94eaff3 /chrome/browser/ui/cocoa/location_bar
parent9115d6dd0c7f7c12cc0f5d3ebb1bec3aae783dab (diff)
downloadchromium_src-3524260667759b3f2b896c1456eeae26b0e6793d.zip
chromium_src-3524260667759b3f2b896c1456eeae26b0e6793d.tar.gz
chromium_src-3524260667759b3f2b896c1456eeae26b0e6793d.tar.bz2
Fixes bug in handling of openning background tabs by way of clicking
on omnibox. BUG=60553 TEST=see bug Review URL: http://codereview.chromium.org/6028010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70616 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/cocoa/location_bar')
-rw-r--r--chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
index 32002e6..91753c3 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
@@ -301,7 +301,7 @@ void LocationBarViewMac::OnAutocompleteAccept(const GURL& url,
}
}
- if (browser_->instant())
+ if (browser_->instant() && !edit_view_->model()->popup_model()->IsOpen())
browser_->instant()->DestroyPreviewContents();
update_instant_ = true;