diff options
author | sreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 02:33:07 +0000 |
---|---|---|
committer | sreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 02:33:07 +0000 |
commit | f2557bdc9161d9613d42c4e4f324815b391f7970 (patch) | |
tree | d6a3c6357565cec198ce0a97411e2ef9d01af31f /chrome/common | |
parent | 4fc7de6a74cb57289e1a99ae8ad98043cbe21904 (diff) | |
download | chromium_src-f2557bdc9161d9613d42c4e4f324815b391f7970.zip chromium_src-f2557bdc9161d9613d42c4e4f324815b391f7970.tar.gz chromium_src-f2557bdc9161d9613d42c4e4f324815b391f7970.tar.bz2 |
Preload Instant search when omnibox is focused.
Start preloading the default search engine's Instant URL when the omnibox is focused, in anticipation of the user typing a query (controlled by a new --preload-instant-search flag).
BUG=69197
TEST=Focus the omnibox, see (through a network trace) that google.com/webhp gets loaded.
Review URL: http://codereview.chromium.org/6990015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 5 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index ef67240..8eb172e8 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -781,6 +781,11 @@ const char kParentProfile[] = "parent-profile"; // renderer process rather than in a separate plugin process. const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; +// Aggressively preload the default search engine's Instant URL, so it's ready +// to receive queries. Only has an effect if Instant is turned on (via "Enable +// Instant for faster searching and browsing" in Preferences -> Basics). +const char kPreloadInstantSearch[] = "preload-instant-search"; + // Controls speculative prerendering of pages, and content prefetching. Both // are dispatched from <link rel=prefetch href=...> elements. const char kPrerender[] = "prerender"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 9ba4393..7914bd6 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -220,6 +220,7 @@ extern const char kPackExtension[]; extern const char kPackExtensionKey[]; extern const char kParentProfile[]; extern const char kPpapiFlashInProcess[]; +extern const char kPreloadInstantSearch[]; extern const char kPrerender[]; extern const char kPrerenderSwitchValueAuto[]; extern const char kPrerenderSwitchValueDisabled[]; |