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 a1078e6bd7bcee53a5e70b2aca17ef42d9c570e5..a3edcdabec8eed492b5d889554e81d461b1d7c08 100644 |
--- a/chrome/browser/ui/ash/chrome_screenshot_grabber.cc |
+++ b/chrome/browser/ui/ash/chrome_screenshot_grabber.cc |
@@ -7,6 +7,9 @@ |
#include <stddef.h> |
#include "ash/common/system/system_notifier.h" |
+#include "ash/common/system/tray/system_tray_notifier.h" |
+#include "ash/common/wm/maximize_mode/maximize_mode_controller.h" |
+#include "ash/common/wm_shell.h" |
#include "ash/shell.h" |
#include "base/base64.h" |
#include "base/bind.h" |
@@ -394,6 +397,10 @@ void ChromeScreenshotGrabber::OnScreenshotCompleted( |
g_browser_process->notification_ui_manager()->Add(*notification, |
GetProfile()); |
} |
+ ash::WmShell* wm_shell = ash::WmShell::Get(); |
+ if (wm_shell->maximize_mode_controller() |
+ ->IsMaximizeModeWindowManagerEnabled()) |
+ wm_shell->system_tray_notifier()->NotifyDidTakeScreenshot(); |
} |
Notification* ChromeScreenshotGrabber::CreateNotification( |