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

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

Issue 64313005: Fix crash when locking a profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix flaky test Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_H_
6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 base::string16 GetManagedUserInformation() const; 121 base::string16 GetManagedUserInformation() const;
122 122
123 // Returns the icon for the managed user which will be displayed in the 123 // Returns the icon for the managed user which will be displayed in the
124 // avatar menu. 124 // avatar menu.
125 const gfx::Image& GetManagedUserIcon() const; 125 const gfx::Image& GetManagedUserIcon() const;
126 126
127 // This menu is also used for the always-present Mac system menubar. If the 127 // This menu is also used for the always-present Mac system menubar. If the
128 // last active browser changes, the menu will need to reference that browser. 128 // last active browser changes, the menu will need to reference that browser.
129 void ActiveBrowserChanged(Browser* browser); 129 void ActiveBrowserChanged(Browser* browser);
130 130
131 // Start the sign-out process for this profile.
132 content::WebContents* BeginSignOut();
133
134 // Use a different URL for logout (for testing only).
135 void SetLogoutURL(const std::string& logout_url);
136
137 // Returns true if the add profile link should be shown. 131 // Returns true if the add profile link should be shown.
138 bool ShouldShowAddNewProfileLink() const; 132 bool ShouldShowAddNewProfileLink() const;
139 133
140 // Returns true if the edit profile link should be shown. 134 // Returns true if the edit profile link should be shown.
141 bool ShouldShowEditProfileLink() const; 135 bool ShouldShowEditProfileLink() const;
142 136
143 // content::NotificationObserver: 137 // content::NotificationObserver:
144 virtual void Observe(int type, 138 virtual void Observe(int type,
145 const content::NotificationSource& source, 139 const content::NotificationSource& source,
146 const content::NotificationDetails& details) OVERRIDE; 140 const content::NotificationDetails& details) OVERRIDE;
(...skipping 14 matching lines...) Expand all
161 // Browser in which this avatar menu resides. Weak. 155 // Browser in which this avatar menu resides. Weak.
162 Browser* browser_; 156 Browser* browser_;
163 157
164 // Listens for notifications from the ProfileInfoCache. 158 // Listens for notifications from the ProfileInfoCache.
165 content::NotificationRegistrar registrar_; 159 content::NotificationRegistrar registrar_;
166 160
167 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); 161 DISALLOW_COPY_AND_ASSIGN(AvatarMenu);
168 }; 162 };
169 163
170 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ 164 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/principals_private/principals_private_api.cc ('k') | chrome/browser/profiles/avatar_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698