| Index: chrome/browser/ui/ash/screenshot_taker.cc
|
| diff --git a/chrome/browser/ui/ash/screenshot_taker.cc b/chrome/browser/ui/ash/screenshot_taker.cc
|
| index 548e93f54184d73eb6f7161dd719a60e5d7f4bdf..f1764fb948b27a6a32825976694830a81d0d2563 100644
|
| --- a/chrome/browser/ui/ash/screenshot_taker.cc
|
| +++ b/chrome/browser/ui/ash/screenshot_taker.cc
|
| @@ -39,6 +39,7 @@
|
| #include "chrome/browser/chromeos/login/user_manager.h"
|
| #include "chrome/browser/notifications/desktop_notification_service.h"
|
| #include "chrome/browser/notifications/desktop_notification_service_factory.h"
|
| +#include "chromeos/login/login_state.h"
|
| #endif
|
|
|
| namespace {
|
| @@ -352,6 +353,12 @@ void ScreenshotTaker::ShowNotification(
|
| const base::FilePath& screenshot_path) {
|
| DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| #if defined(OS_CHROMEOS)
|
| + // Do not show a notification that a screenshot was taken while no user is
|
| + // logged in, since it is confusing for the user to get a message about it
|
| + // after he logs in (crbug.com/235217).
|
| + if (!chromeos::LoginState::Get()->IsUserLoggedIn())
|
| + return;
|
| +
|
| // TODO(sschmitz): make this work for Windows.
|
| DesktopNotificationService* const service =
|
| DesktopNotificationServiceFactory::GetForProfile(GetProfile());
|
|
|