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

Unified Diff: chrome/browser/ui/views/passwords/manage_passwords_view_test.cc

Issue 379283002: Rework UMAHistogramHelper and StatisticsDeltaReader into [Chrome]HistogramTester. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mmenke nits Created 6 years, 5 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/ui/views/passwords/manage_passwords_view_test.cc
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_view_test.cc b/chrome/browser/ui/views/passwords/manage_passwords_view_test.cc
index b1f8f44969adb30cf9ac57f8c97748d582858a58..39d2300a485e0cf2aa57a747481e714f76c33c31 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_view_test.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_view_test.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/ui/views/passwords/manage_passwords_view_test.h"
-#include "base/test/statistics_delta_reader.h"
+#include "base/test/histogram_tester.h"
msw 2014/07/18 17:30:25 nit: you don't need to explicitly include this her
Mike Lerman 2014/07/18 18:23:58 Done.
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_command_controller.h"
@@ -90,6 +90,6 @@ base::HistogramSamples* ManagePasswordsViewTest::GetSamples(
const char* histogram) {
// Ensure that everything has been properly recorded before pulling samples.
content::RunAllPendingInMessageLoop();
- return statistics_reader_.GetHistogramSamplesSinceCreation(
- histogram).release();
+ return histogram_tester_.GetHistogramSamplesSinceCreation(histogram)
msw 2014/07/18 17:30:25 nit: or make this function-local, not a class memb
Mike Lerman 2014/07/18 18:23:58 The timing of the execution of the constructor is
+ .release();
}

Powered by Google App Engine
This is Rietveld 408576698