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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 1302223010: Make https omnibox strikethrough horizontal on all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include WebVR. Created 3 years, 6 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 | « chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index d50af54bbbb597c135d96fa60b1c60c741434e6d..8d209b2a75cc6b6fa9a870ea901e68f4e519d71c 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -585,7 +585,7 @@ void OmniboxViewViews::UpdateSchemeStyle(const gfx::Range& range) {
return;
ApplyColor(location_bar_view_->GetSecureTextColor(security_level_), range);
if (security_level_ == security_state::DANGEROUS)
- ApplyStyle(gfx::DIAGONAL_STRIKE, true, range);
+ ApplyStyle(gfx::STRIKE, true, range);
}
void OmniboxViewViews::EmphasizeURLComponents() {
@@ -600,7 +600,7 @@ void OmniboxViewViews::EmphasizeURLComponents() {
GetRenderText()->SetDirectionalityMode(text_is_url
? gfx::DIRECTIONALITY_FORCE_LTR
: gfx::DIRECTIONALITY_FROM_TEXT);
- SetStyle(gfx::DIAGONAL_STRIKE, false);
+ SetStyle(gfx::STRIKE, false);
UpdateTextStyle(text(), model()->client()->GetSchemeClassifier());
}
« no previous file with comments | « chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698