The omnibox should check protocols registered via registerProtocolHandler, not
just external protocols.

BUG=99900
TEST=Visit http://www.remotespark.com:8080/rph.html, click "Register" and OK the infobar prompt, paste "web+rdp:192.168.8.108" in the omnibox and check that the default action is to navigate
TBR=mpcomplete,miguelg

Review URL: https://codereview.chromium.org/304973005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278925 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc
index 0c3c82c..6ee4329 100644
--- a/chrome/browser/autocomplete/search_provider.cc
+++ b/chrome/browser/autocomplete/search_provider.cc
@@ -1100,10 +1100,12 @@
   size_t inline_autocomplete_offset = (prefix == NULL) ?
       base::string16::npos : (match_start + input.length());
   match.fill_into_edit +=
-      AutocompleteInput::FormattedStringWithEquivalentMeaning(navigation.url(),
+      AutocompleteInput::FormattedStringWithEquivalentMeaning(
+          navigation.url(),
           net::FormatUrl(navigation.url(), languages, format_types,
                          net::UnescapeRule::SPACES, NULL, NULL,
-                         &inline_autocomplete_offset));
+                         &inline_autocomplete_offset),
+          profile_);
   // Preserve the forced query '?' prefix in |match.fill_into_edit|.
   // Otherwise, user edits to a suggestion would show non-Search results.
   if (input_.type() == metrics::OmniboxInputType::FORCED_QUERY) {