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

Unified Diff: chrome/browser/ui/ash/chrome_screenshot_grabber.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/ui/ash/chrome_screenshot_grabber.cc
diff --git a/chrome/browser/ui/ash/chrome_screenshot_grabber.cc b/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
index 36f86ba11fa19100ae71ca82ab695f6554ee4009..1d20f9fd0664b22f7cf8fec620aa10a9e86f4930 100644
--- a/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
+++ b/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
@@ -410,7 +410,7 @@ Notification* ChromeScreenshotGrabber::CreateNotification(
optional_field.buttons.push_back(message_center::ButtonInfo(label));
}
return new Notification(
- message_center::NOTIFICATION_TYPE_SIMPLE, GURL(kNotificationOriginUrl),
+ message_center::NOTIFICATION_TYPE_SIMPLE,
l10n_util::GetStringUTF16(
GetScreenshotNotificationTitle(screenshot_result)),
l10n_util::GetStringUTF16(
@@ -420,7 +420,7 @@ Notification* ChromeScreenshotGrabber::CreateNotification(
message_center::NotifierId(message_center::NotifierId::SYSTEM_COMPONENT,
ash::system_notifier::kNotifierScreenshot),
l10n_util::GetStringUTF16(IDS_MESSAGE_CENTER_NOTIFIER_SCREENSHOT_NAME),
- notification_id, optional_field,
+ GURL(kNotificationOriginUrl), notification_id, optional_field,
new ScreenshotGrabberNotificationDelegate(success, GetProfile(),
screenshot_path));
}
« no previous file with comments | « chrome/browser/sync/sync_error_notifier_ash.cc ('k') | chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698