| Index: chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (リビジョン 28662)
|
| +++ chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (作業コピー)
|
| @@ -1199,17 +1199,17 @@
|
| // 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);
|
| }
|
|
|