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

Unified Diff: components/cronet/ios/cronet_environment.mm

Issue 2801603008: [Cronet iOS] Add base::StatisticsRecorder::IsActive() check (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/ios/cronet_environment.mm
diff --git a/components/cronet/ios/cronet_environment.mm b/components/cronet/ios/cronet_environment.mm
index e886659100504e8358719afbb5a616d6e7fdd65d..a48e6834fec52e4583ad6bfe28029c161efbb001 100644
--- a/components/cronet/ios/cronet_environment.mm
+++ b/components/cronet/ios/cronet_environment.mm
@@ -349,7 +349,7 @@ std::string CronetEnvironment::user_agent() {
}
std::vector<uint8_t> CronetEnvironment::GetHistogramDeltas() {
- base::StatisticsRecorder::Initialize();
+ DCHECK(base::StatisticsRecorder::IsActive());
mef 2017/04/06 22:08:11 What would happen if they call this on background
xunjieli 2017/04/06 23:58:01 Is there an entry point (if not CronetEnvironment
std::vector<uint8_t> data;
if (!HistogramManager::GetInstance()->GetDeltas(&data))
return std::vector<uint8_t>();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698