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

Unified Diff: chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc

Issue 253183003: Media indicator for background recording task (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 6 years, 8 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/multi_user/multi_user_window_manager_chromeos.cc
diff --git a/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc b/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc
index 50480bcc08f5c614a0aba51f02e0fc47876fd6c2..82aa9b4c06c91b967273b2bd8f529d3768f2c069 100644
--- a/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc
+++ b/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc
@@ -14,6 +14,7 @@
#include "ash/shell.h"
#include "ash/shell_delegate.h"
#include "ash/shell_window_ids.h"
+#include "ash/system/tray/system_tray_notifier.h"
#include "ash/wm/window_state.h"
#include "base/auto_reset.h"
#include "base/message_loop/message_loop.h"
@@ -399,6 +400,11 @@ void MultiUserWindowManagerChromeOS::ActiveUserChanged(
animation_.reset(
new UserSwichAnimatorChromeOS(
this, user_id, GetAdjustedAnimationTimeInMS(kUserFadeTimeMS)));
+ // Call notifier here instead of observing ActiveUserChanged because
+ // this must happen after MultiUserWindowManagerChromeOS is notified.
+ ash::Shell::GetInstance()
+ ->system_tray_notifier()
+ ->NotifyMediaCaptureChanged();
}
void MultiUserWindowManagerChromeOS::OnWindowDestroyed(aura::Window* window) {

Powered by Google App Engine
This is Rietveld 408576698