Commit ab76e817 authored by Travis Skare's avatar Travis Skare Committed by Commit Bot

Correct a comment that specified the wrong autocomplete type.

Change-Id: I8040aea64ba8db415aee996457d091fff2993ad9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1677158Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
Commit-Queue: Travis Skare <skare@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672566}
parent 6d1c4022
...@@ -215,7 +215,7 @@ metrics::OmniboxInputType AutocompleteInput::Parse( ...@@ -215,7 +215,7 @@ metrics::OmniboxInputType AutocompleteInput::Parse(
} }
// Treat javascript: scheme queries followed by things that are unlikely to // Treat javascript: scheme queries followed by things that are unlikely to
// be code as QUERY, rather than script to execute (URL). // be code as UNKNOWN, rather than script to execute (URL).
if (RE2::FullMatch(base::UTF16ToUTF8(text), "(?i)javascript:([^;=().\"]*)")) { if (RE2::FullMatch(base::UTF16ToUTF8(text), "(?i)javascript:([^;=().\"]*)")) {
return metrics::OmniboxInputType::UNKNOWN; return metrics::OmniboxInputType::UNKNOWN;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment