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

Unified Diff: components/infobars/core/infobar_manager.cc

Issue 2705293008: Disable info bar animations during automated testing. (Closed)
Patch Set: add DCHECKs Created 3 years, 10 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: components/infobars/core/infobar_manager.cc
diff --git a/components/infobars/core/infobar_manager.cc b/components/infobars/core/infobar_manager.cc
index 06d1b2861c9f8e5a6376aaaec1a60dd168e3ab2e..bed4f50dc708a6ffc6f1a7e32f74e3e4d580ddf8 100644
--- a/components/infobars/core/infobar_manager.cc
+++ b/components/infobars/core/infobar_manager.cc
@@ -101,7 +101,7 @@ void InfoBarManager::RemoveObserver(Observer* obs) {
}
InfoBarManager::InfoBarManager()
- : infobars_enabled_(true) {
+ : infobars_enabled_(true), animations_enabled_(true) {
Peter Kasting 2017/02/23 00:33:56 Nit: You're welcome to move these initializations
samuong 2017/02/23 00:45:26 Done. Just to confirm, you meant using brace-initi
Peter Kasting 2017/02/23 00:51:34 I would use "= true" in preference to "{true}", si
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableInfoBars))
infobars_enabled_ = false;
« components/infobars/core/infobar_manager.h ('K') | « components/infobars/core/infobar_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698