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

Side by Side Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 2099443002: Migrate simple ash Shell metrics users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win compile error. 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
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_context_menu.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_delegate_chromeos.h" 5 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 #include <vector> 13 #include <vector>
14 14
15 #include "ash/common/ash_switches.h" 15 #include "ash/common/ash_switches.h"
16 #include "ash/common/session/session_state_delegate.h" 16 #include "ash/common/session/session_state_delegate.h"
17 #include "ash/common/session/session_state_observer.h" 17 #include "ash/common/session/session_state_observer.h"
18 #include "ash/common/shell_window_ids.h" 18 #include "ash/common/shell_window_ids.h"
19 #include "ash/common/system/chromeos/power/power_status.h" 19 #include "ash/common/system/chromeos/power/power_status.h"
20 #include "ash/common/system/chromeos/shutdown_policy_observer.h" 20 #include "ash/common/system/chromeos/shutdown_policy_observer.h"
21 #include "ash/common/system/date/clock_observer.h" 21 #include "ash/common/system/date/clock_observer.h"
22 #include "ash/common/system/ime/ime_observer.h" 22 #include "ash/common/system/ime/ime_observer.h"
23 #include "ash/common/system/tray/system_tray_delegate.h" 23 #include "ash/common/system/tray/system_tray_delegate.h"
24 #include "ash/common/system/tray/wm_system_tray_notifier.h" 24 #include "ash/common/system/tray/wm_system_tray_notifier.h"
25 #include "ash/common/system/tray_accessibility.h" 25 #include "ash/common/system/tray_accessibility.h"
26 #include "ash/common/system/update/update_observer.h" 26 #include "ash/common/system/update/update_observer.h"
27 #include "ash/common/system/volume_control_delegate.h" 27 #include "ash/common/system/volume_control_delegate.h"
28 #include "ash/common/wm_shell.h" 28 #include "ash/common/wm_shell.h"
29 #include "ash/desktop_background/desktop_background_controller.h" 29 #include "ash/desktop_background/desktop_background_controller.h"
30 #include "ash/metrics/user_metrics_recorder.h"
31 #include "ash/shell.h" 30 #include "ash/shell.h"
32 #include "ash/shell_delegate.h" 31 #include "ash/shell_delegate.h"
33 #include "ash/system/chromeos/bluetooth/bluetooth_observer.h" 32 #include "ash/system/chromeos/bluetooth/bluetooth_observer.h"
34 #include "ash/system/chromeos/session/logout_button_observer.h" 33 #include "ash/system/chromeos/session/logout_button_observer.h"
35 #include "ash/system/tray/system_tray.h" 34 #include "ash/system/tray/system_tray.h"
36 #include "ash/system/tray/system_tray_notifier.h" 35 #include "ash/system/tray/system_tray_notifier.h"
37 #include "ash/system/user/login_status.h" 36 #include "ash/system/user/login_status.h"
38 #include "ash/system/user/user_observer.h" 37 #include "ash/system/user/user_observer.h"
39 #include "ash/wm/lock_state_controller.h" 38 #include "ash/wm/lock_state_controller.h"
40 #include "base/bind_helpers.h" 39 #include "base/bind_helpers.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 ash::IMEInfo* info) { 142 ash::IMEInfo* info) {
144 info->id = ime.id(); 143 info->id = ime.id();
145 info->name = util.GetInputMethodLongName(ime); 144 info->name = util.GetInputMethodLongName(ime);
146 info->medium_name = util.GetInputMethodMediumName(ime); 145 info->medium_name = util.GetInputMethodMediumName(ime);
147 info->short_name = util.GetInputMethodShortName(ime); 146 info->short_name = util.GetInputMethodShortName(ime);
148 info->third_party = extension_ime_util::IsExtensionIME(ime.id()); 147 info->third_party = extension_ime_util::IsExtensionIME(ime.id());
149 } 148 }
150 149
151 gfx::NativeWindow GetNativeWindowByStatus(ash::LoginStatus login_status, 150 gfx::NativeWindow GetNativeWindowByStatus(ash::LoginStatus login_status,
152 bool session_started) { 151 bool session_started) {
153 bool isUserAddingRunning = ash::Shell::GetInstance() 152 ash::WmShell* wm_shell = ash::WmShell::Get();
154 ->session_state_delegate() 153 const bool is_in_secondary_login_screen =
155 ->IsInSecondaryLoginScreen(); 154 wm_shell->GetSessionStateDelegate()->IsInSecondaryLoginScreen();
156 155
157 int container_id = 156 int container_id =
158 (!session_started || login_status == ash::LoginStatus::NOT_LOGGED_IN || 157 (!session_started || login_status == ash::LoginStatus::NOT_LOGGED_IN ||
159 login_status == ash::LoginStatus::LOCKED || isUserAddingRunning) 158 login_status == ash::LoginStatus::LOCKED || is_in_secondary_login_screen)
160 ? ash::kShellWindowId_LockSystemModalContainer 159 ? ash::kShellWindowId_LockSystemModalContainer
161 : ash::kShellWindowId_SystemModalContainer; 160 : ash::kShellWindowId_SystemModalContainer;
162 return ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(), 161 return ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(),
163 container_id); 162 container_id);
164 } 163 }
165 164
166 void BluetoothSetDiscoveringError() { 165 void BluetoothSetDiscoveringError() {
167 LOG(ERROR) << "BluetoothSetDiscovering failed."; 166 LOG(ERROR) << "BluetoothSetDiscovering failed.";
168 } 167 }
169 168
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 ui::ime::InputMethodMenuManager::GetInstance()->AddObserver(this); 243 ui::ime::InputMethodMenuManager::GetInstance()->AddObserver(this);
245 244
246 g_browser_process->platform_part()->GetSystemClock()->AddObserver(this); 245 g_browser_process->platform_part()->GetSystemClock()->AddObserver(this);
247 246
248 OnSystemClockChanged(g_browser_process->platform_part()->GetSystemClock()); 247 OnSystemClockChanged(g_browser_process->platform_part()->GetSystemClock());
249 248
250 device::BluetoothAdapterFactory::GetAdapter( 249 device::BluetoothAdapterFactory::GetAdapter(
251 base::Bind(&SystemTrayDelegateChromeOS::InitializeOnAdapterReady, 250 base::Bind(&SystemTrayDelegateChromeOS::InitializeOnAdapterReady,
252 weak_ptr_factory_.GetWeakPtr())); 251 weak_ptr_factory_.GetWeakPtr()));
253 252
254 ash::Shell::GetInstance()->session_state_delegate()->AddSessionStateObserver( 253 ash::WmShell::Get()->GetSessionStateDelegate()->AddSessionStateObserver(this);
255 this);
256 254
257 if (CrasAudioHandler::IsInitialized()) 255 if (CrasAudioHandler::IsInitialized())
258 CrasAudioHandler::Get()->AddAudioObserver(this); 256 CrasAudioHandler::Get()->AddAudioObserver(this);
259 257
260 BrowserList::AddObserver(this); 258 BrowserList::AddObserver(this);
261 } 259 }
262 260
263 void SystemTrayDelegateChromeOS::Shutdown() { 261 void SystemTrayDelegateChromeOS::Shutdown() {
264 } 262 }
265 263
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 registrar_.reset(); 300 registrar_.reset();
303 301
304 // Unregister a11y status subscription. 302 // Unregister a11y status subscription.
305 accessibility_subscription_.reset(); 303 accessibility_subscription_.reset();
306 304
307 g_browser_process->platform_part()->GetSystemClock()->RemoveObserver(this); 305 g_browser_process->platform_part()->GetSystemClock()->RemoveObserver(this);
308 DBusThreadManager::Get()->GetSessionManagerClient()->RemoveObserver(this); 306 DBusThreadManager::Get()->GetSessionManagerClient()->RemoveObserver(this);
309 input_method::InputMethodManager::Get()->RemoveObserver(this); 307 input_method::InputMethodManager::Get()->RemoveObserver(this);
310 ui::ime::InputMethodMenuManager::GetInstance()->RemoveObserver(this); 308 ui::ime::InputMethodMenuManager::GetInstance()->RemoveObserver(this);
311 bluetooth_adapter_->RemoveObserver(this); 309 bluetooth_adapter_->RemoveObserver(this);
312 ash::Shell::GetInstance() 310 ash::WmShell::Get()->GetSessionStateDelegate()->RemoveSessionStateObserver(
313 ->session_state_delegate() 311 this);
314 ->RemoveSessionStateObserver(this);
315 312
316 if (CrasAudioHandler::IsInitialized()) 313 if (CrasAudioHandler::IsInitialized())
317 CrasAudioHandler::Get()->RemoveAudioObserver(this); 314 CrasAudioHandler::Get()->RemoveAudioObserver(this);
318 315
319 BrowserList::RemoveObserver(this); 316 BrowserList::RemoveObserver(this);
320 StopObservingAppWindowRegistry(); 317 StopObservingAppWindowRegistry();
321 StopObservingCustodianInfoChanges(); 318 StopObservingCustodianInfoChanges();
322 319
323 policy::BrowserPolicyConnectorChromeOS* connector = 320 policy::BrowserPolicyConnectorChromeOS* connector =
324 g_browser_process->platform_part()->browser_policy_connector_chromeos(); 321 g_browser_process->platform_part()->browser_policy_connector_chromeos();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 419
423 base::HourClockType SystemTrayDelegateChromeOS::GetHourClockType() const { 420 base::HourClockType SystemTrayDelegateChromeOS::GetHourClockType() const {
424 return clock_type_; 421 return clock_type_;
425 } 422 }
426 423
427 void SystemTrayDelegateChromeOS::ShowSettings() { 424 void SystemTrayDelegateChromeOS::ShowSettings() {
428 ShowSettingsSubPageForActiveUser(""); 425 ShowSettingsSubPageForActiveUser("");
429 } 426 }
430 427
431 bool SystemTrayDelegateChromeOS::ShouldShowSettings() { 428 bool SystemTrayDelegateChromeOS::ShouldShowSettings() {
429 ash::WmShell* wm_shell = ash::WmShell::Get();
432 return ChromeUserManager::Get()->GetCurrentUserFlow()->ShouldShowSettings() && 430 return ChromeUserManager::Get()->GetCurrentUserFlow()->ShouldShowSettings() &&
433 !ash::Shell::GetInstance() 431 !wm_shell->GetSessionStateDelegate()->IsInSecondaryLoginScreen();
434 ->session_state_delegate()
435 ->IsInSecondaryLoginScreen();
436 } 432 }
437 433
438 void SystemTrayDelegateChromeOS::ShowDateSettings() { 434 void SystemTrayDelegateChromeOS::ShowDateSettings() {
439 content::RecordAction(base::UserMetricsAction("ShowDateOptions")); 435 content::RecordAction(base::UserMetricsAction("ShowDateOptions"));
440 std::string sub_page = 436 std::string sub_page =
441 std::string(chrome::kSearchSubPage) + "#" + 437 std::string(chrome::kSearchSubPage) + "#" +
442 l10n_util::GetStringUTF8(IDS_OPTIONS_SETTINGS_SECTION_TITLE_DATETIME); 438 l10n_util::GetStringUTF8(IDS_OPTIONS_SETTINGS_SECTION_TITLE_DATETIME);
443 // Everybody can change the time zone (even though it is a device setting). 439 // Everybody can change the time zone (even though it is a device setting).
444 ShowSettingsSubPageForActiveUser(sub_page); 440 ShowSettingsSubPageForActiveUser(sub_page);
445 } 441 }
446 442
447 void SystemTrayDelegateChromeOS::ShowSetTimeDialog() { 443 void SystemTrayDelegateChromeOS::ShowSetTimeDialog() {
448 SetTimeDialog::ShowDialog(GetNativeWindow()); 444 SetTimeDialog::ShowDialog(GetNativeWindow());
449 } 445 }
450 446
451 void SystemTrayDelegateChromeOS::ShowNetworkSettingsForGuid( 447 void SystemTrayDelegateChromeOS::ShowNetworkSettingsForGuid(
452 const std::string& guid) { 448 const std::string& guid) {
453 bool userAddingRunning = ash::Shell::GetInstance() 449 ash::WmShell* wm_shell = ash::WmShell::Get();
454 ->session_state_delegate() 450 if (LoginState::Get()->IsUserLoggedIn() &&
455 ->IsInSecondaryLoginScreen(); 451 !wm_shell->GetSessionStateDelegate()->IsInSecondaryLoginScreen()) {
456 452 std::string page = chrome::kInternetOptionsSubPage;
457 if (!LoginState::Get()->IsUserLoggedIn() || userAddingRunning) 453 if (!guid.empty())
458 return; 454 page += "?guid=" + net::EscapeUrlEncodedData(guid, true);
459 std::string page = chrome::kInternetOptionsSubPage; 455 content::RecordAction(base::UserMetricsAction("OpenInternetOptionsDialog"));
460 if (!guid.empty()) 456 ShowSettingsSubPageForActiveUser(page);
461 page += "?guid=" + net::EscapeUrlEncodedData(guid, true); 457 }
462 content::RecordAction(base::UserMetricsAction("OpenInternetOptionsDialog"));
463 ShowSettingsSubPageForActiveUser(page);
464 } 458 }
465 459
466 void SystemTrayDelegateChromeOS::ShowDisplaySettings() { 460 void SystemTrayDelegateChromeOS::ShowDisplaySettings() {
467 content::RecordAction(base::UserMetricsAction("ShowDisplayOptions")); 461 content::RecordAction(base::UserMetricsAction("ShowDisplayOptions"));
468 ShowSettingsSubPageForActiveUser(kDisplaySettingsSubPageName); 462 ShowSettingsSubPageForActiveUser(kDisplaySettingsSubPageName);
469 } 463 }
470 464
471 void SystemTrayDelegateChromeOS::ShowPowerSettings() { 465 void SystemTrayDelegateChromeOS::ShowPowerSettings() {
472 if (!(switches::PowerOverlayEnabled() || 466 if (!(switches::PowerOverlayEnabled() ||
473 (ash::PowerStatus::Get()->IsBatteryPresent() && 467 (ash::PowerStatus::Get()->IsBatteryPresent() &&
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 chrome::ShowPolicy(displayer.browser()); 528 chrome::ShowPolicy(displayer.browser());
535 } 529 }
536 530
537 void SystemTrayDelegateChromeOS::ShowSupervisedUserInfo() { 531 void SystemTrayDelegateChromeOS::ShowSupervisedUserInfo() {
538 // TODO(antrim): find out what should we show in this case. 532 // TODO(antrim): find out what should we show in this case.
539 // http://crbug.com/229762 533 // http://crbug.com/229762
540 } 534 }
541 535
542 void SystemTrayDelegateChromeOS::ShowEnterpriseInfo() { 536 void SystemTrayDelegateChromeOS::ShowEnterpriseInfo() {
543 ash::LoginStatus status = GetUserLoginStatus(); 537 ash::LoginStatus status = GetUserLoginStatus();
544 bool userAddingRunning = ash::Shell::GetInstance() 538 ash::WmShell* wm_shell = ash::WmShell::Get();
545 ->session_state_delegate()
546 ->IsInSecondaryLoginScreen();
547
548 if (status == ash::LoginStatus::NOT_LOGGED_IN || 539 if (status == ash::LoginStatus::NOT_LOGGED_IN ||
549 status == ash::LoginStatus::LOCKED || userAddingRunning) { 540 status == ash::LoginStatus::LOCKED ||
541 wm_shell->GetSessionStateDelegate()->IsInSecondaryLoginScreen()) {
550 scoped_refptr<chromeos::HelpAppLauncher> help_app( 542 scoped_refptr<chromeos::HelpAppLauncher> help_app(
551 new chromeos::HelpAppLauncher(GetNativeWindow())); 543 new chromeos::HelpAppLauncher(GetNativeWindow()));
552 help_app->ShowHelpTopic(chromeos::HelpAppLauncher::HELP_ENTERPRISE); 544 help_app->ShowHelpTopic(chromeos::HelpAppLauncher::HELP_ENTERPRISE);
553 } else { 545 } else {
554 chrome::ScopedTabbedBrowserDisplayer displayer( 546 chrome::ScopedTabbedBrowserDisplayer displayer(
555 ProfileManager::GetActiveUserProfile()); 547 ProfileManager::GetActiveUserProfile());
556 chrome::ShowSingletonTab(displayer.browser(), 548 chrome::ShowSingletonTab(displayer.browser(),
557 GURL(chrome::kLearnMoreEnterpriseURL)); 549 GURL(chrome::kLearnMoreEnterpriseURL));
558 } 550 }
559 } 551 }
560 552
561 void SystemTrayDelegateChromeOS::ShowUserLogin() { 553 void SystemTrayDelegateChromeOS::ShowUserLogin() {
562 ash::Shell* shell = ash::Shell::GetInstance(); 554 ash::Shell* shell = ash::Shell::GetInstance();
555 ash::WmShell* wm_shell = ash::WmShell::Get();
563 if (!shell->delegate()->IsMultiProfilesEnabled()) 556 if (!shell->delegate()->IsMultiProfilesEnabled())
564 return; 557 return;
565 558
566 // Only regular non-supervised users could add other users to current session. 559 // Only regular non-supervised users could add other users to current session.
567 if (user_manager::UserManager::Get()->GetActiveUser()->GetType() != 560 if (user_manager::UserManager::Get()->GetActiveUser()->GetType() !=
568 user_manager::USER_TYPE_REGULAR) { 561 user_manager::USER_TYPE_REGULAR) {
569 return; 562 return;
570 } 563 }
571 564
572 if (static_cast<int>( 565 if (static_cast<int>(
573 user_manager::UserManager::Get()->GetLoggedInUsers().size()) >= 566 user_manager::UserManager::Get()->GetLoggedInUsers().size()) >=
574 shell->session_state_delegate()->GetMaximumNumberOfLoggedInUsers()) 567 wm_shell->GetSessionStateDelegate()->GetMaximumNumberOfLoggedInUsers()) {
575 return; 568 return;
569 }
576 570
577 // Launch sign in screen to add another user to current session. 571 // Launch sign in screen to add another user to current session.
578 if (user_manager::UserManager::Get() 572 if (user_manager::UserManager::Get()
579 ->GetUsersAllowedForMultiProfile() 573 ->GetUsersAllowedForMultiProfile()
580 .size()) { 574 .size()) {
581 // Don't show dialog if any logged in user in multi-profiles session 575 // Don't show dialog if any logged in user in multi-profiles session
582 // dismissed it. 576 // dismissed it.
583 bool show_intro = true; 577 bool show_intro = true;
584 const user_manager::UserList logged_in_users = 578 const user_manager::UserList logged_in_users =
585 user_manager::UserManager::Get()->GetLoggedInUsers(); 579 user_manager::UserManager::Get()->GetLoggedInUsers();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 void SystemTrayDelegateChromeOS::ConnectToBluetoothDevice( 659 void SystemTrayDelegateChromeOS::ConnectToBluetoothDevice(
666 const std::string& address) { 660 const std::string& address) {
667 device::BluetoothDevice* device = bluetooth_adapter_->GetDevice(address); 661 device::BluetoothDevice* device = bluetooth_adapter_->GetDevice(address);
668 if (!device || device->IsConnecting() || 662 if (!device || device->IsConnecting() ||
669 (device->IsConnected() && device->IsPaired())) { 663 (device->IsConnected() && device->IsPaired())) {
670 return; 664 return;
671 } 665 }
672 if (device->IsPaired() && !device->IsConnectable()) 666 if (device->IsPaired() && !device->IsConnectable())
673 return; 667 return;
674 if (device->IsPaired() || !device->IsPairable()) { 668 if (device->IsPaired() || !device->IsPairable()) {
675 ash::Shell::GetInstance()->metrics()->RecordUserMetricsAction( 669 ash::WmShell::Get()->RecordUserMetricsAction(
676 ash::UMA_STATUS_AREA_BLUETOOTH_CONNECT_KNOWN_DEVICE); 670 ash::UMA_STATUS_AREA_BLUETOOTH_CONNECT_KNOWN_DEVICE);
677 device->Connect(NULL, 671 device->Connect(NULL,
678 base::Bind(&base::DoNothing), 672 base::Bind(&base::DoNothing),
679 base::Bind(&BluetoothDeviceConnectError)); 673 base::Bind(&BluetoothDeviceConnectError));
680 } else { // Show paring dialog for the unpaired device. 674 } else { // Show paring dialog for the unpaired device.
681 ash::Shell::GetInstance()->metrics()->RecordUserMetricsAction( 675 ash::WmShell::Get()->RecordUserMetricsAction(
682 ash::UMA_STATUS_AREA_BLUETOOTH_CONNECT_UNKNOWN_DEVICE); 676 ash::UMA_STATUS_AREA_BLUETOOTH_CONNECT_UNKNOWN_DEVICE);
683 BluetoothPairingDialog* dialog = 677 BluetoothPairingDialog* dialog =
684 new BluetoothPairingDialog(GetNativeWindow(), device); 678 new BluetoothPairingDialog(GetNativeWindow(), device);
685 // The dialog deletes itself on close. 679 // The dialog deletes itself on close.
686 dialog->Show(); 680 dialog->Show();
687 } 681 }
688 } 682 }
689 683
690 bool SystemTrayDelegateChromeOS::IsBluetoothDiscovering() { 684 bool SystemTrayDelegateChromeOS::IsBluetoothDiscovering() {
691 return bluetooth_adapter_->IsDiscovering(); 685 return bluetooth_adapter_->IsDiscovering();
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 screen_locked_ = true; 1056 screen_locked_ = true;
1063 ash::Shell::GetInstance()->UpdateAfterLoginStatusChange(GetUserLoginStatus()); 1057 ash::Shell::GetInstance()->UpdateAfterLoginStatusChange(GetUserLoginStatus());
1064 } 1058 }
1065 1059
1066 void SystemTrayDelegateChromeOS::ScreenIsUnlocked() { 1060 void SystemTrayDelegateChromeOS::ScreenIsUnlocked() {
1067 screen_locked_ = false; 1061 screen_locked_ = false;
1068 ash::Shell::GetInstance()->UpdateAfterLoginStatusChange(GetUserLoginStatus()); 1062 ash::Shell::GetInstance()->UpdateAfterLoginStatusChange(GetUserLoginStatus());
1069 } 1063 }
1070 1064
1071 gfx::NativeWindow SystemTrayDelegateChromeOS::GetNativeWindow() const { 1065 gfx::NativeWindow SystemTrayDelegateChromeOS::GetNativeWindow() const {
1072 bool session_started = ash::Shell::GetInstance() 1066 bool session_started = ash::WmShell::Get()
1073 ->session_state_delegate() 1067 ->GetSessionStateDelegate()
1074 ->IsActiveUserSessionStarted(); 1068 ->IsActiveUserSessionStarted();
1075 return GetNativeWindowByStatus(GetUserLoginStatus(), session_started); 1069 return GetNativeWindowByStatus(GetUserLoginStatus(), session_started);
1076 } 1070 }
1077 1071
1078 // content::NotificationObserver implementation. 1072 // content::NotificationObserver implementation.
1079 void SystemTrayDelegateChromeOS::Observe( 1073 void SystemTrayDelegateChromeOS::Observe(
1080 int type, 1074 int type,
1081 const content::NotificationSource& source, 1075 const content::NotificationSource& source,
1082 const content::NotificationDetails& details) { 1076 const content::NotificationDetails& details) {
1083 switch (type) { 1077 switch (type) {
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while " 1332 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while "
1339 << "ENABLE_SUPERVISED_USERS undefined."; 1333 << "ENABLE_SUPERVISED_USERS undefined.";
1340 return base::string16(); 1334 return base::string16();
1341 } 1335 }
1342 1336
1343 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { 1337 ash::SystemTrayDelegate* CreateSystemTrayDelegate() {
1344 return new SystemTrayDelegateChromeOS(); 1338 return new SystemTrayDelegateChromeOS();
1345 } 1339 }
1346 1340
1347 } // namespace chromeos 1341 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_context_menu.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698