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

Unified Diff: chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm

Issue 2119033002: [Material][Mac] Implement Omnibox Verbose State Chips (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the verbose for "NOT SECURE" Created 4 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
Index: chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
index cdea965d56e39fda08c72b0b0b9357250576ccfe..90c06cb90c99e703f96ac9fd4d45bc5295652a93 100644
--- a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
@@ -43,6 +43,11 @@ BubbleDecoration::BubbleDecoration() : retina_baseline_offset_(0) {
attributes_.reset([[NSMutableDictionary alloc] init]);
[attributes_ setObject:LocationBarDecoration::GetFont()
forKey:NSFontAttributeName];
+
+ base::scoped_nsobject<NSMutableParagraphStyle> style(
+ [[NSMutableParagraphStyle alloc] init]);
+ [style setLineBreakMode:NSLineBreakByClipping];
+ [attributes_ setObject:style forKey:NSParagraphStyleAttributeName];
}
BubbleDecoration::~BubbleDecoration() {

Powered by Google App Engine
This is Rietveld 408576698