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

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

Issue 426713002: Revert of Fix the handling of user gestures for external protocol handler dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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/chrome_autocomplete_scheme_classifier.cc
diff --git a/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc b/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
index 720935831417a5e6469de46bc27704891e93fd0d..811a896237f1c663994480a75c608ec1cacee302 100644
--- a/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
+++ b/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
@@ -45,12 +45,8 @@ ChromeAutocompleteSchemeClassifier::GetInputTypeForScheme(
// handlable schemes (e.g. "javascript") may be treated as "blocked" by the
// external protocol handler because we don't want pages to open them, but
// users still can.
- //
- // Note that the protocol handler needs to be informed that omnibox input
- // should always be considered "user gesture-triggered", lest it always
- // return BLOCK.
const ExternalProtocolHandler::BlockState block_state =
- ExternalProtocolHandler::GetBlockState(scheme, true);
+ ExternalProtocolHandler::GetBlockState(scheme);
switch (block_state) {
case ExternalProtocolHandler::DONT_BLOCK:
return metrics::OmniboxInputType::URL;

Powered by Google App Engine
This is Rietveld 408576698