diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-19 20:21:22 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-19 20:21:22 +0000 |
commit | b93b79ecb040bc0563dec1b5e8e8cea3eed04e75 (patch) | |
tree | 48eaf3dc50cea53f2798713ad84b12e1947694c3 /chrome/browser/cocoa | |
parent | bb30c93d17e1232c4e7a6c4d0d0ac9047cee190b (diff) | |
download | chromium_src-b93b79ecb040bc0563dec1b5e8e8cea3eed04e75.zip chromium_src-b93b79ecb040bc0563dec1b5e8e8cea3eed04e75.tar.gz chromium_src-b93b79ecb040bc0563dec1b5e8e8cea3eed04e75.tar.bz2 |
Adds support for proper handling of verbatim queries. That is, if the
user enabled predictive instant we switch to verbatim in certain
situations.
BUG=59217
TEST=see bug
Review URL: http://codereview.chromium.org/5225003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66805 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r-- | chrome/browser/cocoa/location_bar/location_bar_view_mac.mm | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/cocoa/location_bar/location_bar_view_mac.mm index 95edc30..b19f01c 100644 --- a/chrome/browser/cocoa/location_bar/location_bar_view_mac.mm +++ b/chrome/browser/cocoa/location_bar/location_bar_view_mac.mm @@ -314,11 +314,12 @@ void LocationBarViewMac::OnChanged() { if (update_instant_ && instant && GetTabContents()) { if (edit_view_->model()->user_input_in_progress() && edit_view_->model()->popup_model()->IsOpen()) { - instant->Update(browser_->GetSelectedTabContentsWrapper(), - edit_view_->model()->CurrentMatch(), - WideToUTF16(edit_view_->GetText()), - false, // TODO: make this real - &suggested_text); + instant->Update + (browser_->GetSelectedTabContentsWrapper(), + edit_view_->model()->CurrentMatch(), + WideToUTF16(edit_view_->GetText()), + edit_view_->model()->UseVerbatimInstant(), + &suggested_text); } else { if (instant->is_active()) instant->DestroyPreviewContents(); |