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/common/login_status.h" | 7 #include "ash/common/login_status.h" |
8 #include "ash/common/session/session_state_delegate.h" | 8 #include "ash/common/session/session_state_delegate.h" |
9 #include "ash/common/shell_window_ids.h" | |
10 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
| 10 #include "ash/public/cpp/shell_window_ids.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/browser_process_platform_part.h" | 15 #include "chrome/browser/browser_process_platform_part.h" |
16 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 16 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
17 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 17 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
18 #include "chrome/browser/chromeos/options/network_config_view.h" | 18 #include "chrome/browser/chromeos/options/network_config_view.h" |
19 #include "chrome/browser/chromeos/system/system_clock.h" | 19 #include "chrome/browser/chromeos/system/system_clock.h" |
20 #include "chrome/browser/profiles/profile_manager.h" | 20 #include "chrome/browser/profiles/profile_manager.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 connector->ConnectToInterface("service:content_browser", &system_tray_); | 254 connector->ConnectToInterface("service:content_browser", &system_tray_); |
255 | 255 |
256 // Tolerate ash crashing and coming back up. | 256 // Tolerate ash crashing and coming back up. |
257 system_tray_.set_connection_error_handler(base::Bind( | 257 system_tray_.set_connection_error_handler(base::Bind( |
258 &SystemTrayClient::OnClientConnectionError, base::Unretained(this))); | 258 &SystemTrayClient::OnClientConnectionError, base::Unretained(this))); |
259 } | 259 } |
260 | 260 |
261 void SystemTrayClient::OnClientConnectionError() { | 261 void SystemTrayClient::OnClientConnectionError() { |
262 system_tray_.reset(); | 262 system_tray_.reset(); |
263 } | 263 } |
OLD | NEW |