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

Unified Diff: chrome/browser/ui/views/profile_chooser_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
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..e99d4b114c89dd14dc8ddb5feea8c113b30e2d1b 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 set_close_on_deactivate_for_testing(bool close) {
+ close_on_deactivate_for_testing_ = close;
}
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();

Powered by Google App Engine
This is Rietveld 408576698