summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete
diff options
context:
space:
mode:
authormrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-31 03:53:19 +0000
committermrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-31 03:53:19 +0000
commita92106341c9179a2251c420a5673084ca7ad2fc6 (patch)
treece78d015f937e4bf55df3a22e706c37aa73c37b3 /chrome/browser/autocomplete
parent9e036b93c2ba88fb4b2cae51c0a55a4ae7d3536d (diff)
downloadchromium_src-a92106341c9179a2251c420a5673084ca7ad2fc6.zip
chromium_src-a92106341c9179a2251c420a5673084ca7ad2fc6.tar.gz
chromium_src-a92106341c9179a2251c420a5673084ca7ad2fc6.tar.bz2
Use proper FormatUrl() call so correct format_types is applied.
BUG=None TEST=None TBR=pkasting@chromium.org Review URL: https://chromiumcodereview.appspot.com/9303023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119838 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r--chrome/browser/autocomplete/history_quick_provider.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc
index 8c7d7fc..e41494d8 100644
--- a/chrome/browser/autocomplete/history_quick_provider.cc
+++ b/chrome/browser/autocomplete/history_quick_provider.cc
@@ -128,7 +128,8 @@ AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch(
AutocompleteInput::FormattedStringWithEquivalentMeaning(info.url(),
net::FormatUrlWithOffsets(info.url(), languages_, format_types,
net::UnescapeRule::SPACES, NULL, NULL, &offsets));
- match.contents = net::FormatUrl(info.url(), languages_);
+ match.contents = net::FormatUrl(info.url(), languages_, format_types,
+ net::UnescapeRule::SPACES, NULL, NULL, NULL);
history::TermMatches new_matches =
ReplaceOffsetsInTermMatches(history_match.url_matches, offsets);
match.contents_class =