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

Side by Side Diff: chrome/browser/notifications/notification_platform_bridge_mac.mm

Issue 2770523003: [Mac] Change the notification button drop down label (Closed)
Patch Set: review comments Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/notifications/notification_platform_bridge_mac.h" 5 #include "chrome/browser/notifications/notification_platform_bridge_mac.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 void NotificationPlatformBridgeMac::Display( 176 void NotificationPlatformBridgeMac::Display(
177 NotificationCommon::Type notification_type, 177 NotificationCommon::Type notification_type,
178 const std::string& notification_id, 178 const std::string& notification_id,
179 const std::string& profile_id, 179 const std::string& profile_id,
180 bool incognito, 180 bool incognito,
181 const Notification& notification) { 181 const Notification& notification) {
182 base::scoped_nsobject<NotificationBuilder> builder( 182 base::scoped_nsobject<NotificationBuilder> builder(
183 [[NotificationBuilder alloc] 183 [[NotificationBuilder alloc]
184 initWithCloseLabel:l10n_util::GetNSString(IDS_NOTIFICATION_BUTTON_CLOSE) 184 initWithCloseLabel:l10n_util::GetNSString(IDS_NOTIFICATION_BUTTON_CLOSE)
185 optionsLabel:l10n_util::GetNSString(IDS_NOTIFICATION_BUTTON_OPTIONS) 185 optionsLabel:l10n_util::GetNSString(IDS_NOTIFICATION_BUTTON_MORE)
186 settingsLabel:l10n_util::GetNSString( 186 settingsLabel:l10n_util::GetNSString(
187 IDS_NOTIFICATION_BUTTON_SETTINGS)]); 187 IDS_NOTIFICATION_BUTTON_SETTINGS)]);
188 188
189 [builder setTitle:base::SysUTF16ToNSString(notification.title())]; 189 [builder setTitle:base::SysUTF16ToNSString(notification.title())];
190 [builder setContextMessage:base::SysUTF16ToNSString(notification.message())]; 190 [builder setContextMessage:base::SysUTF16ToNSString(notification.message())];
191 191
192 base::string16 subtitle = 192 base::string16 subtitle =
193 notification.context_message().empty() 193 notification.context_message().empty()
194 ? url_formatter::FormatOriginForSecurityDisplay( 194 ? url_formatter::FormatOriginForSecurityDisplay(
195 url::Origin(notification.origin_url()), 195 url::Origin(notification.origin_url()),
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 base::scoped_nsobject<CrXPCMachPort> xpcPort( 525 base::scoped_nsobject<CrXPCMachPort> xpcPort(
526 [[CrXPCMachPort alloc] initWithMachSendRight:std::move(exceptionPort)]); 526 [[CrXPCMachPort alloc] initWithMachSendRight:std::move(exceptionPort)]);
527 [proxy setMachExceptionPort:xpcPort]; 527 [proxy setMachExceptionPort:xpcPort];
528 setExceptionPort_ = YES; 528 setExceptionPort_ = YES;
529 } 529 }
530 530
531 return proxy; 531 return proxy;
532 } 532 }
533 533
534 @end 534 @end
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698