OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_ASH_STUB_USER_ACCOUNTS_DELEGATE_H_ | |
6 #define CHROME_BROWSER_UI_ASH_STUB_USER_ACCOUNTS_DELEGATE_H_ | |
7 | |
8 #include "ash/system/user/user_accounts_delegate.h" | |
9 #include "base/compiler_specific.h" | |
10 #include "base/macros.h" | |
11 | |
12 class StubUserAccountsDelegate : public ash::tray::UserAccountsDelegate { | |
13 public: | |
14 explicit StubUserAccountsDelegate(const std::string& owner_id); | |
15 virtual ~StubUserAccountsDelegate(); | |
16 | |
17 // Overridden from ash::tray::UserAccountsDelegate: | |
18 virtual std::string GetPrimaryAccount() OVERRIDE; | |
19 virtual std::vector<std::string> GetSecondaryAccountsList() OVERRIDE; | |
20 virtual std::string GetAccountDisplayName(const std::string& account_id) | |
21 OVERRIDE; | |
22 virtual void DeleteAccount(const std::string& account_id) OVERRIDE; | |
23 virtual void LaunchAddAccountDialog() OVERRIDE; | |
24 | |
25 void AddAccount(const std::string& account); | |
Mr4D (OOO till 08-26)
2014/03/26 16:49:54
First the class own function - then the overrides.
dzhioev (left Google)
2014/03/26 23:48:52
Done.
| |
26 | |
27 private: | |
28 std::string primary_account_; | |
29 std::vector<std::string> secondary_accounts_; | |
30 | |
31 DISALLOW_COPY_AND_ASSIGN(StubUserAccountsDelegate); | |
32 }; | |
33 | |
34 #endif // CHROME_BROWSER_UI_ASH_STUB_USER_ACCOUNTS_DELEGATE_H_ | |
OLD | NEW |