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

Unified Diff: chrome/browser/metrics/metrics_service_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 | « chrome/browser/metrics/metrics_log_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service_unittest.cc
diff --git a/chrome/browser/metrics/metrics_service_unittest.cc b/chrome/browser/metrics/metrics_service_unittest.cc
index a328dce4ef16a94ab6a4db986816f99b15e6122d..6c5bcd45880b1f936169a3876a1a6e2a3ac0fb6c 100644
--- a/chrome/browser/metrics/metrics_service_unittest.cc
+++ b/chrome/browser/metrics/metrics_service_unittest.cc
@@ -81,6 +81,11 @@ class MetricsServiceTest : public testing::Test {
virtual ~MetricsServiceTest() {
MetricsService::SetExecutionPhase(MetricsService::UNINITIALIZED_PHASE,
GetLocalState());
+#if defined(OS_CHROMEOS)
+ // TODO(blundell): Remove this code once MetricsService no longer creates
+ // ChromeOSMetricsProvider.
+ chromeos::LoginState::Shutdown();
+#endif // defined(OS_CHROMEOS)
}
metrics::MetricsStateManager* GetMetricsStateManager() {
« no previous file with comments | « chrome/browser/metrics/metrics_log_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698