diff options
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc index 46e92e8..35017b6 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc +++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc @@ -1199,17 +1199,17 @@ void AutocompleteEditViewGtk::EmphasizeURLComponents() { // Emphasize the scheme for security UI display purposes (if necessary). if (!model_->user_input_in_progress() && parts.scheme.is_nonempty() && (scheme_security_level_ != ToolbarModel::NORMAL)) { - strikethrough_ = CharRange(GetUTF8Offset(text, parts.scheme.begin), - GetUTF8Offset(text, parts.scheme.end())); - ItersFromCharRange(strikethrough_, &start, &end); - // When we draw the strikethrough, we don't want to include the ':' at the - // end of the scheme. - strikethrough_.cp_max--; - if (scheme_security_level_ == ToolbarModel::SECURE) { gtk_text_buffer_apply_tag(text_buffer_, secure_scheme_tag_, &start, &end); } else { + strikethrough_ = CharRange(GetUTF8Offset(text, parts.scheme.begin), + GetUTF8Offset(text, parts.scheme.end())); + ItersFromCharRange(strikethrough_, &start, &end); + // When we draw the strikethrough, we don't want to include the ':' at the + // end of the scheme. + strikethrough_.cp_max--; + gtk_text_buffer_apply_tag(text_buffer_, insecure_scheme_tag_, &start, &end); } |