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

Side by Side Diff: chrome/test/base/testing_browser_process.cc

Issue 308433004: Reduce plugin_metrics_provider_ usage in MetricsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 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 | « chrome/test/base/testing_browser_process.h ('k') | components/metrics/metrics_provider.h » ('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 "chrome/test/base/testing_browser_process.h" 5 #include "chrome/test/base/testing_browser_process.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/time/default_tick_clock.h" 9 #include "base/time/default_tick_clock.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // g_browser_process if it is not NULL, so it must be NULL before proceeding. 89 // g_browser_process if it is not NULL, so it must be NULL before proceeding.
90 DCHECK_EQ(static_cast<BrowserProcess*>(NULL), g_browser_process); 90 DCHECK_EQ(static_cast<BrowserProcess*>(NULL), g_browser_process);
91 } 91 }
92 92
93 void TestingBrowserProcess::ResourceDispatcherHostCreated() { 93 void TestingBrowserProcess::ResourceDispatcherHostCreated() {
94 } 94 }
95 95
96 void TestingBrowserProcess::EndSession() { 96 void TestingBrowserProcess::EndSession() {
97 } 97 }
98 98
99 MetricsServicesManager* TestingBrowserProcess::GetMetricsServicesManager() {
100 return NULL;
101 }
102
99 MetricsService* TestingBrowserProcess::metrics_service() { 103 MetricsService* TestingBrowserProcess::metrics_service() {
100 return NULL; 104 return NULL;
101 } 105 }
102 106
103 rappor::RapporService* TestingBrowserProcess::rappor_service() { 107 rappor::RapporService* TestingBrowserProcess::rappor_service() {
104 return NULL; 108 return NULL;
105 } 109 }
106 110
107 IOThread* TestingBrowserProcess::io_thread() { 111 IOThread* TestingBrowserProcess::io_thread() {
108 return io_thread_; 112 return io_thread_;
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 434
431 /////////////////////////////////////////////////////////////////////////////// 435 ///////////////////////////////////////////////////////////////////////////////
432 436
433 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { 437 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() {
434 TestingBrowserProcess::CreateInstance(); 438 TestingBrowserProcess::CreateInstance();
435 } 439 }
436 440
437 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { 441 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() {
438 TestingBrowserProcess::DeleteInstance(); 442 TestingBrowserProcess::DeleteInstance();
439 } 443 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | components/metrics/metrics_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698