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

Unified Diff: chrome/browser/ui/views/avatar_menu_bubble_view.h

Issue 51113006: Fix static set_close_on_deactivate overriding non-virtual base method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update the usage of the renamed function set_close_on_deactivate_for_testing Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/avatar_menu_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/avatar_menu_bubble_view.h
diff --git a/chrome/browser/ui/views/avatar_menu_bubble_view.h b/chrome/browser/ui/views/avatar_menu_bubble_view.h
index e9e722553be2004304f32c3696888ad4fa574f36..be2e8b351f569a1d63461b1a1740a16942eef29b 100644
--- a/chrome/browser/ui/views/avatar_menu_bubble_view.h
+++ b/chrome/browser/ui/views/avatar_menu_bubble_view.h
@@ -82,8 +82,8 @@ class AvatarMenuBubbleView : public views::BubbleDelegateView,
// We normally close the bubble any time it becomes inactive but this can lead
// to flaky tests where unexpected UI events are triggering this behavior.
// Tests should call this with "false" for more consistent operation.
- static void set_close_on_deactivate(bool close) {
- close_on_deactivate_ = close;
+ static void set_close_on_deactivate_for_testing(bool close) {
Peter Kasting 2013/11/04 22:19:33 If these functions are only for tests, and only ca
yao 2013/11/06 19:56:53 Done.
+ close_on_deactivate_for_testing_ = close;
}
private:
@@ -125,7 +125,7 @@ class AvatarMenuBubbleView : public views::BubbleDelegateView,
views::Link* switch_profile_link_;
static AvatarMenuBubbleView* avatar_bubble_;
- static bool close_on_deactivate_;
+ static bool close_on_deactivate_for_testing_;
// Is set to true if the managed user has clicked on Switch Users.
bool expanded_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/avatar_menu_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698