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

Unified Diff: content/browser/histogram_controller.cc

Issue 1671933002: Create and pass shared-histogram-allocator from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hsm-merge
Patch Set: addressd review comments by Alexei Created 4 years, 9 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: content/browser/histogram_controller.cc
diff --git a/content/browser/histogram_controller.cc b/content/browser/histogram_controller.cc
index efefa9645752a292380945ed59fcd69a4724cbc7..b81bda768af50a5b54302eaf05e04c19da82d611 100644
--- a/content/browser/histogram_controller.cc
+++ b/content/browser/histogram_controller.cc
@@ -90,8 +90,10 @@ void HistogramController::GetHistogramDataFromChildProcesses(
continue;
++pending_processes;
- if (!iter.Send(new ChildProcessMsg_GetChildHistogramData(sequence_number)))
+ if (!iter.Send(new ChildProcessMsg_GetChildNonPersistentHistogramData(
+ sequence_number))) {
--pending_processes;
+ }
}
BrowserThread::PostTask(
@@ -113,7 +115,8 @@ void HistogramController::GetHistogramData(int sequence_number) {
!it.IsAtEnd(); it.Advance()) {
++pending_processes;
if (!it.GetCurrentValue()->Send(
- new ChildProcessMsg_GetChildHistogramData(sequence_number))) {
+ new ChildProcessMsg_GetChildNonPersistentHistogramData(
+ sequence_number))) {
--pending_processes;
}
}

Powered by Google App Engine
This is Rietveld 408576698