OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/system_tray_client.h" | 5 #include "chrome/browser/ui/ash/system_tray_client.h" |
6 | 6 |
7 #include "ash/login_status.h" | 7 #include "ash/login_status.h" |
8 #include "ash/public/cpp/shell_window_ids.h" | 8 #include "ash/public/cpp/shell_window_ids.h" |
9 #include "ash/public/interfaces/constants.mojom.h" | 9 #include "ash/public/interfaces/constants.mojom.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 26 matching lines...) Expand all Loading... | |
37 #include "chrome/common/chrome_features.h" | 37 #include "chrome/common/chrome_features.h" |
38 #include "chrome/common/url_constants.h" | 38 #include "chrome/common/url_constants.h" |
39 #include "chromeos/dbus/dbus_thread_manager.h" | 39 #include "chromeos/dbus/dbus_thread_manager.h" |
40 #include "chromeos/dbus/session_manager_client.h" | 40 #include "chromeos/dbus/session_manager_client.h" |
41 #include "chromeos/login/login_state.h" | 41 #include "chromeos/login/login_state.h" |
42 #include "components/session_manager/core/session_manager.h" | 42 #include "components/session_manager/core/session_manager.h" |
43 #include "components/user_manager/user_manager.h" | 43 #include "components/user_manager/user_manager.h" |
44 #include "content/public/browser/notification_service.h" | 44 #include "content/public/browser/notification_service.h" |
45 #include "content/public/common/service_manager_connection.h" | 45 #include "content/public/common/service_manager_connection.h" |
46 #include "device/bluetooth/bluetooth_device.h" | 46 #include "device/bluetooth/bluetooth_device.h" |
47 #include "extensions/browser/api/vpn_provider/vpn_service.h" | |
48 #include "extensions/browser/api/vpn_provider/vpn_service_factory.h" | |
49 #include "net/base/escape.h" | 47 #include "net/base/escape.h" |
50 #include "services/service_manager/public/cpp/connector.h" | 48 #include "services/service_manager/public/cpp/connector.h" |
51 #include "services/ui/public/cpp/property_type_converters.h" | 49 #include "services/ui/public/cpp/property_type_converters.h" |
52 #include "services/ui/public/interfaces/window_manager.mojom.h" | 50 #include "services/ui/public/interfaces/window_manager.mojom.h" |
53 #include "third_party/cros_system_api/dbus/shill/dbus-constants.h" | 51 #include "third_party/cros_system_api/dbus/shill/dbus-constants.h" |
54 #include "ui/views/widget/widget.h" | 52 #include "ui/views/widget/widget.h" |
55 #include "ui/views/window/dialog_delegate.h" | 53 #include "ui/views/window/dialog_delegate.h" |
56 | 54 |
55 #if defined(OS_CHROMEOS) | |
jam
2017/05/01 21:23:19
system_tray_client.cc is only in chromeos builds,
wychen
2017/05/01 23:18:21
Done.
| |
56 #include "extensions/browser/api/vpn_provider/vpn_service.h" | |
57 #include "extensions/browser/api/vpn_provider/vpn_service_factory.h" | |
58 #endif // defined(OS_CHROMEOS) | |
59 | |
57 using chromeos::BluetoothPairingDialog; | 60 using chromeos::BluetoothPairingDialog; |
58 using chromeos::DBusThreadManager; | 61 using chromeos::DBusThreadManager; |
59 using chromeos::LoginState; | 62 using chromeos::LoginState; |
60 using device::BluetoothDevice; | 63 using device::BluetoothDevice; |
61 using views::Widget; | 64 using views::Widget; |
62 | 65 |
63 namespace { | 66 namespace { |
64 | 67 |
65 SystemTrayClient* g_instance = nullptr; | 68 SystemTrayClient* g_instance = nullptr; |
66 | 69 |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
471 if (enterprise_domain == last_enterprise_domain_ && | 474 if (enterprise_domain == last_enterprise_domain_ && |
472 active_directory_managed == last_active_directory_managed_) { | 475 active_directory_managed == last_active_directory_managed_) { |
473 return; | 476 return; |
474 } | 477 } |
475 // Send to ash, which will add an item to the system tray. | 478 // Send to ash, which will add an item to the system tray. |
476 system_tray_->SetEnterpriseDomain(enterprise_domain, | 479 system_tray_->SetEnterpriseDomain(enterprise_domain, |
477 active_directory_managed); | 480 active_directory_managed); |
478 last_enterprise_domain_ = enterprise_domain; | 481 last_enterprise_domain_ = enterprise_domain; |
479 last_active_directory_managed_ = active_directory_managed; | 482 last_active_directory_managed_ = active_directory_managed; |
480 } | 483 } |
OLD | NEW |