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

Unified Diff: chrome/browser/extensions/extension_storage_monitor.cc

Issue 1292003004: Elide origins displayed on web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style nit Created 5 years, 4 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/extensions/extension_storage_monitor.cc
diff --git a/chrome/browser/extensions/extension_storage_monitor.cc b/chrome/browser/extensions/extension_storage_monitor.cc
index ec8d03c009e2439df1a3cf21acf87b7064d99a7f..02ea2e505f5ff4c5513e27c7f1faa0034e123750 100644
--- a/chrome/browser/extensions/extension_storage_monitor.cc
+++ b/chrome/browser/extensions/extension_storage_monitor.cc
@@ -440,22 +440,18 @@ void ExtensionStorageMonitor::OnImageLoaded(
scoped_ptr<message_center::Notification> notification;
notification.reset(new message_center::Notification(
- message_center::NOTIFICATION_TYPE_SIMPLE,
- notification_id,
+ message_center::NOTIFICATION_TYPE_SIMPLE, notification_id,
l10n_util::GetStringUTF16(IDS_EXTENSION_STORAGE_MONITOR_TITLE),
- l10n_util::GetStringFUTF16(
- IDS_EXTENSION_STORAGE_MONITOR_TEXT,
- base::UTF8ToUTF16(extension->name()),
- base::IntToString16(current_usage / kMBytes)),
- notification_image,
- base::string16() /* display source */,
- message_center::NotifierId(
- message_center::NotifierId::SYSTEM_COMPONENT, kSystemNotifierId),
+ l10n_util::GetStringFUTF16(IDS_EXTENSION_STORAGE_MONITOR_TEXT,
+ base::UTF8ToUTF16(extension->name()),
+ base::IntToString16(current_usage / kMBytes)),
+ notification_image, base::string16() /* display source */, GURL(),
+ message_center::NotifierId(message_center::NotifierId::SYSTEM_COMPONENT,
+ kSystemNotifierId),
notification_data,
- new message_center::HandleNotificationButtonClickDelegate(base::Bind(
- &ExtensionStorageMonitor::OnNotificationButtonClick,
- weak_ptr_factory_.GetWeakPtr(),
- extension_id))));
+ new message_center::HandleNotificationButtonClickDelegate(
+ base::Bind(&ExtensionStorageMonitor::OnNotificationButtonClick,
+ weak_ptr_factory_.GetWeakPtr(), extension_id))));
notification->SetSystemPriority();
message_center::MessageCenter::Get()->AddNotification(notification.Pass());

Powered by Google App Engine
This is Rietveld 408576698