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

Side by Side Diff: chrome/browser/profiles/avatar_menu_actions_desktop.h

Issue 1242793005: Refactor most c/b/profiles calls to ProfileInfoCache. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows unit test and ChromeOS build Created 5 years, 5 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
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 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_ 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_
6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_ 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/profiles/avatar_menu_actions.h" 10 #include "chrome/browser/profiles/avatar_menu_actions.h"
11 #include "chrome/browser/profiles/profile_metrics.h" 11 #include "chrome/browser/profiles/profile_metrics.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 // This interface controls the behavior of avatar menu actions. 15 // This interface controls the behavior of avatar menu actions.
16 class AvatarMenuActionsDesktop : public AvatarMenuActions { 16 class AvatarMenuActionsDesktop : public AvatarMenuActions {
17 public: 17 public:
18 AvatarMenuActionsDesktop(); 18 AvatarMenuActionsDesktop();
19 ~AvatarMenuActionsDesktop() override; 19 ~AvatarMenuActionsDesktop() override;
20 20
21 // AvatarMenuActions overrides: 21 // AvatarMenuActions overrides:
22 void AddNewProfile(ProfileMetrics::ProfileAdd type) override; 22 void AddNewProfile(ProfileMetrics::ProfileAdd type) override;
23 void EditProfile(Profile* profile, size_t index) override; 23 void EditProfile(Profile* profile) override;
24 bool ShouldShowAddNewProfileLink() const override; 24 bool ShouldShowAddNewProfileLink() const override;
25 bool ShouldShowEditProfileLink() const override; 25 bool ShouldShowEditProfileLink() const override;
26 void ActiveBrowserChanged(Browser* browser) override; 26 void ActiveBrowserChanged(Browser* browser) override;
27 27
28 private: 28 private:
29 // Browser in which this avatar menu resides. Weak. 29 // Browser in which this avatar menu resides. Weak.
30 Browser* browser_; 30 Browser* browser_;
31 31
32 // Special "override" logout URL used to let tests work. 32 // Special "override" logout URL used to let tests work.
33 std::string logout_override_; 33 std::string logout_override_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsDesktop); 35 DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsDesktop);
36 }; 36 };
37 37
38 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_ 38 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698