| Index: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
| diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
| index d3fc1aa252dc5d45f6f695694bc45e7bebb0a04f..c6842b36385260db3607016540ffed6e6ae1d4aa 100644
|
| --- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
| +++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
| @@ -77,6 +77,7 @@
|
| #include "chrome/browser/lifetime/application_lifetime.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
|
| +#include "chrome/browser/ui/ash/stub_user_accounts_delegate.h"
|
| #include "chrome/browser/ui/ash/volume_controller_chromeos.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_finder.h"
|
| @@ -916,6 +917,26 @@ bool SystemTrayDelegateChromeOS::IsSearchKeyMappedToCapsLock() {
|
| return search_key_mapped_to_ == input_method::kCapsLockKey;
|
| }
|
|
|
| +ash::tray::UserAccountsDelegate*
|
| +SystemTrayDelegateChromeOS::GetUserAccountsDelegate(
|
| + const std::string& user_id) {
|
| + if (!accounts_delegates_.contains(user_id)) {
|
| + // TODO(dzhioev): replace stub with real implementation.
|
| + accounts_delegates_.set(user_id,
|
| + scoped_ptr<ash::tray::UserAccountsDelegate>(
|
| + new StubUserAccountsDelegate(user_id)));
|
| + static_cast<StubUserAccountsDelegate*>(accounts_delegates_.get(user_id))
|
| + ->AddAccount("secondary_account1@gmail.com");
|
| + static_cast<StubUserAccountsDelegate*>(accounts_delegates_.get(user_id))
|
| + ->AddAccount("very_long_account_name_for_user@gmail.com");
|
| + static_cast<StubUserAccountsDelegate*>(accounts_delegates_.get(user_id))
|
| + ->AddAccount("secondary_account2@gmail.com");
|
| + static_cast<StubUserAccountsDelegate*>(accounts_delegates_.get(user_id))
|
| + ->AddAccount("very_very_very_long_account_name_for_user@gmail.com");
|
| + }
|
| + return accounts_delegates_.get(user_id);
|
| +}
|
| +
|
| ash::SystemTray* SystemTrayDelegateChromeOS::GetPrimarySystemTray() {
|
| return ash::Shell::GetInstance()->GetPrimarySystemTray();
|
| }
|
|
|