| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ash/system/chromeos/enterprise/tray_enterprise.h" | 5 #include "ash/system/chromeos/enterprise/tray_enterprise.h" |
| 6 | 6 |
| 7 #include "ash/common/login_status.h" |
| 7 #include "ash/common/system/tray/system_tray_delegate.h" | 8 #include "ash/common/system/tray/system_tray_delegate.h" |
| 8 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
| 9 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 10 #include "ash/system/chromeos/label_tray_view.h" | 11 #include "ash/system/chromeos/label_tray_view.h" |
| 11 #include "ash/system/tray/system_tray_notifier.h" | 12 #include "ash/system/tray/system_tray_notifier.h" |
| 12 #include "ash/system/user/login_status.h" | |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "grit/ash_resources.h" | 15 #include "grit/ash_resources.h" |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 | 18 |
| 19 TrayEnterprise::TrayEnterprise(SystemTray* system_tray) | 19 TrayEnterprise::TrayEnterprise(SystemTray* system_tray) |
| 20 : SystemTrayItem(system_tray), | 20 : SystemTrayItem(system_tray), |
| 21 tray_view_(NULL) { | 21 tray_view_(NULL) { |
| 22 Shell::GetInstance()->system_tray_notifier()-> | 22 Shell::GetInstance()->system_tray_notifier()-> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 52 | 52 |
| 53 void TrayEnterprise::OnEnterpriseDomainChanged() { | 53 void TrayEnterprise::OnEnterpriseDomainChanged() { |
| 54 UpdateEnterpriseMessage(); | 54 UpdateEnterpriseMessage(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void TrayEnterprise::OnViewClicked(views::View* sender) { | 57 void TrayEnterprise::OnViewClicked(views::View* sender) { |
| 58 WmShell::Get()->system_tray_delegate()->ShowEnterpriseInfo(); | 58 WmShell::Get()->system_tray_delegate()->ShowEnterpriseInfo(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 } // namespace ash | 61 } // namespace ash |
| OLD | NEW |