Index: chrome/browser/ui/views/profile_chooser_view.h |
diff --git a/chrome/browser/ui/views/profile_chooser_view.h b/chrome/browser/ui/views/profile_chooser_view.h |
index 8affea1ae6159b327ad457e3db67c8e66a5ca57d..2001461f321dec9a4494fcb02c591f2b8cec1f82 100644 |
--- a/chrome/browser/ui/views/profile_chooser_view.h |
+++ b/chrome/browser/ui/views/profile_chooser_view.h |
@@ -50,8 +50,8 @@ class ProfileChooserView : 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 clear_close_on_deactivate_for_testing() { |
+ close_on_deactivate_for_testing_ = false; |
} |
private: |
@@ -89,7 +89,7 @@ class ProfileChooserView : public views::BubbleDelegateView, |
virtual void OnAvatarMenuChanged(AvatarMenu* avatar_menu) OVERRIDE; |
static ProfileChooserView* profile_bubble_; |
- static bool close_on_deactivate_; |
+ static bool close_on_deactivate_for_testing_; |
void ResetLinksAndButtons(); |