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

Unified Diff: chrome/browser/net/http_pipelining_compatibility_client_unittest.cc

Issue 10779040: Initialize StatisticsRecorder in Child Process to hold (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/chrome_browser_application_mac_unittest.mm ('k') | chrome_frame/metrics_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/http_pipelining_compatibility_client_unittest.cc
===================================================================
--- chrome/browser/net/http_pipelining_compatibility_client_unittest.cc (revision 147155)
+++ chrome/browser/net/http_pipelining_compatibility_client_unittest.cc (working copy)
@@ -85,6 +85,9 @@
protected:
virtual void SetUp() OVERRIDE {
+ // Start up a histogram recorder.
+ // TODO(rtenneti): Leaks StatisticsRecorder and will update suppressions.
+ base::StatisticsRecorder::Initialize();
ASSERT_TRUE(test_server_.Start());
context_ = new TestURLRequestContextGetter(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
@@ -225,7 +228,6 @@
static std::map<std::string, base::Histogram*> histograms_;
std::map<std::string, base::Histogram::SampleSet> samples_;
std::map<std::string, base::Histogram::SampleSet> original_samples_;
- base::StatisticsRecorder recorder_;
};
// static
« no previous file with comments | « chrome/browser/chrome_browser_application_mac_unittest.mm ('k') | chrome_frame/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698