Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: chrome/browser/autocomplete/history_url_provider.cc

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: use system srp and mpi libs, not local copies Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/history_url_provider.cc
diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
index 1db38f0df02a2714c7b009cf557dd663f93e44e9..f166302d1d0bad41bebc9f56b262232a7b0b4bcf 100644
--- a/chrome/browser/autocomplete/history_url_provider.cc
+++ b/chrome/browser/autocomplete/history_url_provider.cc
@@ -180,7 +180,7 @@ void HistoryURLProvider::DoAutocomplete(history::HistoryBackend* backend,
// care:
// * Their input can be opened as a URL, and
// * They hit ctrl-enter, or we parsed the input as a URL, or it starts with
- // an explicit "http:" or "https:".
+ // an explicit "http:", "https:", or "httpsv:".
// Otherwise, this is just low-quality noise. In the cases where we've parsed
// as UNKNOWN, we'll still show an accidental search infobar if need be.
bool have_what_you_typed_match =
@@ -189,7 +189,9 @@ void HistoryURLProvider::DoAutocomplete(history::HistoryBackend* backend,
((params->input.type() != AutocompleteInput::UNKNOWN) ||
!params->trim_http ||
url_util::FindAndCompareScheme(UTF16ToUTF8(params->input.text()),
- chrome::kHttpsScheme, NULL));
+ chrome::kHttpsScheme, NULL) ||
+ url_util::FindAndCompareScheme(UTF16ToUTF8(params->input.text()),
+ chrome::kHttpsvScheme, NULL));
AutocompleteMatch what_you_typed_match(SuggestExactInput(params->input,
params->trim_http));

Powered by Google App Engine
This is Rietveld 408576698