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

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

Issue 310493002: metrics: call LoginState::Shutdown() at end of unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add virtual keyword to destructor 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 | chrome/browser/metrics/metrics_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698