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

Unified Diff: content/public/test/mock_render_process_host.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: rebased (use new PersistentHistogramAllocator) 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/public/test/mock_render_process_host.cc
diff --git a/content/public/test/mock_render_process_host.cc b/content/public/test/mock_render_process_host.cc
index 0fa30ed7d731e775b473657cc22b2e9bafa806d3..d917115615078be764a5d7060999627f24361c0d 100644
--- a/content/public/test/mock_render_process_host.cc
+++ b/content/public/test/mock_render_process_host.cc
@@ -263,6 +263,11 @@ ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() {
return service_registry_.get();
}
+scoped_ptr<base::SharedPersistentMemoryAllocator>
+MockRenderProcessHost::ExtractMetricsAllocator() {
+ return std::move(metrics_allocator_);
+}
+
const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics()
const {
static base::TimeTicks dummy_time = base::TimeTicks::Now();

Powered by Google App Engine
This is Rietveld 408576698