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

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

Issue 273016: Don't draw the red line when the security level is SECURE.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698