Index: chrome/browser/metrics/metrics_log_unittest.cc |
diff --git a/chrome/browser/metrics/metrics_log_unittest.cc b/chrome/browser/metrics/metrics_log_unittest.cc |
index cfc9b9c71a01196bc22f03d1d07996f197aff1f9..f6ee93b00ac606ad4d0cb0037ebaf4d6d700990a 100644 |
--- a/chrome/browser/metrics/metrics_log_unittest.cc |
+++ b/chrome/browser/metrics/metrics_log_unittest.cc |
@@ -123,6 +123,14 @@ class MetricsLogTest : public testing::Test { |
#endif // defined(OS_CHROMEOS) |
} |
+ virtual ~MetricsLogTest() { |
+#if defined(OS_CHROMEOS) |
+ // TODO(blundell): Remove this code once MetricsService no longer creates |
+ // ChromeOSMetricsProvider. |
+ chromeos::LoginState::Shutdown(); |
+#endif // defined(OS_CHROMEOS) |
+ } |
+ |
protected: |
// Check that the values in |system_values| correspond to the test data |
// defined at the top of this file. |