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

Side by Side Diff: ash/system/chromeos/enterprise/tray_enterprise.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 (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/login_status.h"
8 #include "ash/common/system/tray/system_tray_delegate.h" 8 #include "ash/common/system/tray/system_tray_delegate.h"
9 #include "ash/common/system/tray/system_tray_notifier.h" 9 #include "ash/common/system/tray/system_tray_notifier.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
11 #include "ash/system/chromeos/label_tray_view.h" 11 #include "ash/system/chromeos/label_tray_view.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "grit/ash_resources.h" 14 #include "grit/ash_resources.h"
15 15
16 namespace ash { 16 namespace ash {
17 17
18 TrayEnterprise::TrayEnterprise(SystemTray* system_tray) 18 TrayEnterprise::TrayEnterprise(SystemTray* system_tray)
19 : SystemTrayItem(system_tray), 19 : SystemTrayItem(system_tray), tray_view_(NULL) {
20 tray_view_(NULL) {
21 WmShell::Get()->system_tray_notifier()->AddEnterpriseDomainObserver(this); 20 WmShell::Get()->system_tray_notifier()->AddEnterpriseDomainObserver(this);
22 } 21 }
23 22
24 TrayEnterprise::~TrayEnterprise() { 23 TrayEnterprise::~TrayEnterprise() {
25 WmShell::Get()->system_tray_notifier()->RemoveEnterpriseDomainObserver(this); 24 WmShell::Get()->system_tray_notifier()->RemoveEnterpriseDomainObserver(this);
26 } 25 }
27 26
28 void TrayEnterprise::UpdateEnterpriseMessage() { 27 void TrayEnterprise::UpdateEnterpriseMessage() {
29 base::string16 message = 28 base::string16 message =
30 WmShell::Get()->system_tray_delegate()->GetEnterpriseMessage(); 29 WmShell::Get()->system_tray_delegate()->GetEnterpriseMessage();
(...skipping 17 matching lines...) Expand all
48 } 47 }
49 48
50 void TrayEnterprise::OnEnterpriseDomainChanged() { 49 void TrayEnterprise::OnEnterpriseDomainChanged() {
51 UpdateEnterpriseMessage(); 50 UpdateEnterpriseMessage();
52 } 51 }
53 52
54 void TrayEnterprise::OnViewClicked(views::View* sender) { 53 void TrayEnterprise::OnViewClicked(views::View* sender) {
55 WmShell::Get()->system_tray_delegate()->ShowEnterpriseInfo(); 54 WmShell::Get()->system_tray_delegate()->ShowEnterpriseInfo();
56 } 55 }
57 56
58 } // namespace ash 57 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/enterprise/tray_enterprise.h ('k') | ash/system/chromeos/keyboard_brightness_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698