diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-23 01:13:10 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-23 01:13:10 +0000 |
commit | 1b6f6ffd39c1620d7ffd802e82a4b87653f5a463 (patch) | |
tree | 3e325ca60b285dec6a748c9ad3ca1c47eab285ee /chrome/browser/autocomplete/autocomplete.h | |
parent | b95b915d8a831681ee4f7219152f2c00e5cd93cd (diff) | |
download | chromium_src-1b6f6ffd39c1620d7ffd802e82a4b87653f5a463.zip chromium_src-1b6f6ffd39c1620d7ffd802e82a4b87653f5a463.tar.gz chromium_src-1b6f6ffd39c1620d7ffd802e82a4b87653f5a463.tar.bz2 |
Add autocomplete provider for "about:" URLs.
This is a reworked version of r74451 that makes the following changes:
* Removed function to convert an about: string to a URL. We don't need this in the autocomplete side because the "about:" URLs will be correctly handled when the user hits enter; and removing it means we don't need to ensure that the data provider is initialized, because that will also be done automatically.
* Clean up the about:about HTML construction to be shorter and produce slightly more readable source code
* Remove about:vaporware (cleared with thakis, who added it)
(Obviously, the last two changes are "while I'm here, ..." cleanups.)
BUG=6870
TEST=Typing "about:s" into the omnibox should result in a couple of "about:s..." URL entries in the dropdown even if you've never visited them.
Review URL: http://codereview.chromium.org/6474019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75691 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete.h b/chrome/browser/autocomplete/autocomplete.h index 9a182b1..395d469 100644 --- a/chrome/browser/autocomplete/autocomplete.h +++ b/chrome/browser/autocomplete/autocomplete.h @@ -54,6 +54,7 @@ // Search Primary Provider (navigational suggestion) | 800++ // HistoryContents (any match in title of nonstarred page) | 700++ // Search Primary Provider (suggestion) | 600++ +// Built-in | 575++ // HistoryContents (any match in body of starred page) | 550++ // HistoryContents (any match in body of nonstarred page) | 500++ // Keyword (inexact match) | 450 @@ -76,6 +77,7 @@ // Search Primary Provider (navigational suggestion) | 800++ // HistoryContents (any match in title of nonstarred page) | 700++ // Search Primary Provider (suggestion) | 600++ +// Built-in | 575++ // HistoryContents (any match in body of starred page) | 550++ // HistoryContents (any match in body of nonstarred page) | 500++ // Keyword (inexact match) | 450 @@ -95,6 +97,7 @@ // Search Primary Provider (navigational suggestion) | 800++ // Search Primary Provider (past query in history) | 750-- // Keyword (inexact match) | 700 +// Built-in | 575++ // Search Primary Provider (suggestion) | 300++ // Search Secondary Provider (what you typed) | 250 // Search Secondary Provider (past query in history) | 200-- |