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

Unified Diff: chrome/browser/chromeos/login/login_browsertest.cc

Issue 1778873002: Replace Increment/DecrementKeepAliveCount by ScopedKeepAlives (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KAObserver
Patch Set: replace the commented dcheck by a dlog Created 4 years, 9 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/chromeos/login/login_browsertest.cc
diff --git a/chrome/browser/chromeos/login/login_browsertest.cc b/chrome/browser/chromeos/login/login_browsertest.cc
index bd7b287a889082eb3bad83c6c913bd5954c8eb1e..4d57ef6a3b34b66b10e38e5f8ff073468904322c 100644
--- a/chrome/browser/chromeos/login/login_browsertest.cc
+++ b/chrome/browser/chromeos/login/login_browsertest.cc
@@ -75,6 +75,12 @@ class LoginSigninTest : public InProcessBrowserTest {
command_line->AppendSwitch(switches::kForceLoginManagerInTests);
}
+ void TearDownOnMainThread() override {
+ // Close the login manager, which otherwise holds a KeepAlive that is not
+ // cleared in time by the end of the test.
+ LoginDisplayHost::default_host()->Finalize();
+ }
+
void SetUpOnMainThread() override {
LoginDisplayHostImpl::DisableRestrictiveProxyCheckForTest();
« no previous file with comments | « chrome/browser/browser_process_platform_part_chromeos.cc ('k') | chrome/browser/chromeos/login/ui/login_display_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698