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

Unified Diff: chrome/browser/metrics/chromeos_metrics_provider_unittest.cc

Issue 302153003: metrics: Shutdown LoginState after CrOSMetricsProvider tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/chromeos_metrics_provider_unittest.cc
diff --git a/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc b/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc
index 1e32848b1729fa1983266738a1902d647f2cf705..19869754c56b53570491bcdc715469cb1b407384 100644
--- a/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc
+++ b/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc
@@ -81,7 +81,12 @@ class ChromeOSMetricsProviderTest : public testing::Test {
chromeos::LoginState::Initialize();
}
- virtual void TearDown() OVERRIDE { DBusThreadManager::Shutdown(); }
+ virtual void TearDown() OVERRIDE {
+ // Destroy the login state tracker if it was initialized.
+ chromeos::LoginState::Shutdown();
+
+ DBusThreadManager::Shutdown();
+ }
protected:
FakeBluetoothAdapterClient* fake_bluetooth_adapter_client_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698