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

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: fixed test to not use SharedMemory which doesn't work on all builds (and rebased) Created 4 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 | « chrome/chrome_tests_unit.gypi ('k') | content/browser/renderer_host/render_process_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/histogram_controller.cc
diff --git a/content/browser/histogram_controller.cc b/content/browser/histogram_controller.cc
index 6106e64e4ea617353129c8c15c36dd4f2fb3aeab..052bd7a5bd71ead652fc958d975aad70214f6358 100644
--- a/content/browser/histogram_controller.cc
+++ b/content/browser/histogram_controller.cc
@@ -89,8 +89,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(
@@ -112,7 +114,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;
}
}
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/renderer_host/render_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698