diff options
author | shishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-18 07:32:14 +0000 |
---|---|---|
committer | shishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-18 07:32:14 +0000 |
commit | 86ec98eeb1c3a9c4f70f7526e0dad8bcc097d3c9 (patch) | |
tree | 30b04e0857dbd2207f3e64a9b8222eae64955c0f | |
parent | e8fd5bb77c695bccb4a42c83521566644e0488f2 (diff) | |
download | chromium_src-86ec98eeb1c3a9c4f70f7526e0dad8bcc097d3c9.zip chromium_src-86ec98eeb1c3a9c4f70f7526e0dad8bcc097d3c9.tar.gz chromium_src-86ec98eeb1c3a9c4f70f7526e0dad8bcc097d3c9.tar.bz2 |
Disable incognito for InstantExtended.
BUG=142788
Review URL: https://chromiumcodereview.appspot.com/11617002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173674 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/ui/search/search.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/ui/search/search.cc b/chrome/browser/ui/search/search.cc index 659d492..1205dfb 100644 --- a/chrome/browser/ui/search/search.cc +++ b/chrome/browser/ui/search/search.cc @@ -20,6 +20,10 @@ bool IsInstantExtendedAPIEnabled(const Profile* profile) { } uint64 EmbeddedSearchPageVersion(const Profile* profile) { + // Incognito windows do not currently use the embedded search API. + if (!profile || profile->IsOffTheRecord()) + return 0; + // Check Finch field trials. base::FieldTrial* trial = base::FieldTrialList::Find("InstantExtended"); if (trial && StartsWithASCII(trial->group_name(), "Group", true)) { |