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

Unified Diff: chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm

Issue 1950333002: Remove url scheme from the chooser bubble title on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove url scheme from the chooser bubble title on Mac Created 4 years, 7 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/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm b/chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm
index 9b03a48cc77c8f8bd8fff6ff32b442d0d41f882e..899504243f081e3036ddb03714fe20d57cabed9c 100644
--- a/chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm
+++ b/chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm
@@ -454,11 +454,11 @@ std::unique_ptr<BubbleUi> ChooserBubbleController::BuildBubbleUi() {
[titleView setBezeled:NO];
[titleView setEditable:NO];
[titleView setSelectable:NO];
- [titleView setStringValue:l10n_util::GetNSStringF(
- IDS_CHOOSER_BUBBLE_PROMPT,
- base::ASCIIToUTF16(
- chooserBubbleController_->GetOrigin()
- .Serialize()))];
+ [titleView
+ setStringValue:l10n_util::GetNSStringF(
+ IDS_CHOOSER_BUBBLE_PROMPT,
+ base::ASCIIToUTF16(
+ chooserBubbleController_->GetOrigin().host()))];
[titleView setFont:[NSFont systemFontOfSize:[NSFont systemFontSize]]];
// The height is arbitrary as it will be adjusted later.
[titleView setFrameSize:NSMakeSize(kChooserBubbleWidth - 2 * kMarginX, 0.0f)];
« 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