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

Side by Side Diff: chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chrom eos.h" 5 #include "chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chrom eos.h"
6 6
7 #include "ash/common/system/system_notifier.h" 7 #include "ash/system/system_notifier.h"
8 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" 8 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h"
9 #include "components/signin/core/account_id/account_id.h" 9 #include "components/signin/core/account_id/account_id.h"
10 #include "ui/message_center/message_center.h" 10 #include "ui/message_center/message_center.h"
11 #include "ui/message_center/notifier_settings.h" 11 #include "ui/message_center/notifier_settings.h"
12 12
13 MultiUserNotificationBlockerChromeOS::MultiUserNotificationBlockerChromeOS( 13 MultiUserNotificationBlockerChromeOS::MultiUserNotificationBlockerChromeOS(
14 message_center::MessageCenter* message_center, 14 message_center::MessageCenter* message_center,
15 const AccountId& initial_account_id) 15 const AccountId& initial_account_id)
16 : NotificationBlocker(message_center), 16 : NotificationBlocker(message_center),
17 active_account_id_(initial_account_id) {} 17 active_account_id_(initial_account_id) {}
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 iter->second != message_center()->IsQuietMode()) { 49 iter->second != message_center()->IsQuietMode()) {
50 message_center()->SetQuietMode(iter->second); 50 message_center()->SetQuietMode(iter->second);
51 } 51 }
52 NotifyBlockingStateChanged(); 52 NotifyBlockingStateChanged();
53 } 53 }
54 54
55 bool MultiUserNotificationBlockerChromeOS::IsActive() const { 55 bool MultiUserNotificationBlockerChromeOS::IsActive() const {
56 return chrome::MultiUserWindowManager::GetMultiProfileMode() == 56 return chrome::MultiUserWindowManager::GetMultiProfileMode() ==
57 chrome::MultiUserWindowManager::MULTI_PROFILE_MODE_SEPARATED; 57 chrome::MultiUserWindowManager::MULTI_PROFILE_MODE_SEPARATED;
58 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698