summaryrefslogtreecommitdiffstats
path: root/chrome/browser/android
diff options
context:
space:
mode:
authordavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-24 21:03:04 +0000
committerdavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-24 21:03:04 +0000
commit8d98f09f158994adc81ed8e2614da61bee3e517a (patch)
tree5f657753b4eb5ac893dce997766df1512ca72020 /chrome/browser/android
parent366b6cbe2574b035cf7609819514b5b83c28b286 (diff)
downloadchromium_src-8d98f09f158994adc81ed8e2614da61bee3e517a.zip
chromium_src-8d98f09f158994adc81ed8e2614da61bee3e517a.tar.gz
chromium_src-8d98f09f158994adc81ed8e2614da61bee3e517a.tar.bz2
Abandon and cancel omnibox prerenders as appropriate.
If a match is selected, abandon the prerender for a lower timeout. If the omnibox is dismissed, abort the prerender. This fixes the bug for desktop and Android Chrome. BUG=356894 Review URL: https://codereview.chromium.org/235943017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265988 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/android')
-rw-r--r--chrome/browser/android/omnibox/omnibox_prerender.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/android/omnibox/omnibox_prerender.cc b/chrome/browser/android/omnibox/omnibox_prerender.cc
index 8c6a08c..05e1636 100644
--- a/chrome/browser/android/omnibox/omnibox_prerender.cc
+++ b/chrome/browser/android/omnibox/omnibox_prerender.cc
@@ -47,6 +47,7 @@ void OmniboxPrerender::Clear(JNIEnv* env,
AutocompleteActionPredictor* action_predictor =
AutocompleteActionPredictorFactory::GetForProfile(profile);
action_predictor->ClearTransitionalMatches();
+ action_predictor->CancelPrerender();
}
void OmniboxPrerender::InitializeForProfile(