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

Side by Side Diff: content/public/test/mock_render_process_host.cc

Issue 1875503003: Revert "Create and pass shared-histogram-allocator from browser to renderer." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/mock_render_process_host.h" 5 #include "content/public/test/mock_render_process_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 return base::TimeDelta::FromMilliseconds(0); 256 return base::TimeDelta::FromMilliseconds(0);
257 } 257 }
258 258
259 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { 259 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) {
260 } 260 }
261 261
262 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { 262 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() {
263 return service_registry_.get(); 263 return service_registry_.get();
264 } 264 }
265 265
266 scoped_ptr<base::SharedPersistentMemoryAllocator>
267 MockRenderProcessHost::TakeMetricsAllocator() {
268 return nullptr;
269 }
270
271 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() 266 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics()
272 const { 267 const {
273 static base::TimeTicks dummy_time = base::TimeTicks::Now(); 268 static base::TimeTicks dummy_time = base::TimeTicks::Now();
274 return dummy_time; 269 return dummy_time;
275 } 270 }
276 271
277 bool MockRenderProcessHost::SubscribeUniformEnabled() const { 272 bool MockRenderProcessHost::SubscribeUniformEnabled() const {
278 return false; 273 return false;
279 } 274 }
280 275
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 371 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
377 it != processes_.end(); ++it) { 372 it != processes_.end(); ++it) {
378 if (*it == host) { 373 if (*it == host) {
379 processes_.weak_erase(it); 374 processes_.weak_erase(it);
380 break; 375 break;
381 } 376 }
382 } 377 }
383 } 378 }
384 379
385 } // namespace content 380 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698