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

Unified Diff: chrome/test/base/testing_browser_process.cc

Issue 9703115: Add DeviceSettingProvider unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed documentation. Created 8 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: chrome/test/base/testing_browser_process.cc
diff --git a/chrome/test/base/testing_browser_process.cc b/chrome/test/base/testing_browser_process.cc
index 64bee2c4b3d7ab6127d437a6c050f02daab56f2b..94af01a41b412f534dec32db5e802bd966692372 100644
--- a/chrome/test/base/testing_browser_process.cc
+++ b/chrome/test/base/testing_browser_process.cc
@@ -6,6 +6,7 @@
#include "base/string_util.h"
#include "chrome/browser/google/google_url_tracker.h"
+#include "chrome/browser/metrics/metrics_service.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/policy/policy_service_stub.h"
@@ -39,7 +40,7 @@ void TestingBrowserProcess::EndSession() {
}
MetricsService* TestingBrowserProcess::metrics_service() {
- return NULL;
+ return metrics_service_.get();
}
IOThread* TestingBrowserProcess::io_thread() {
@@ -270,3 +271,7 @@ void TestingBrowserProcess::SetSafeBrowsingService(
SafeBrowsingService* sb_service) {
sb_service_ = sb_service;
}
+
+void TestingBrowserProcess::SetMetricsService(MetricsService* service) {
+ metrics_service_.reset(service);
+}
« chrome/browser/metrics/metrics_service.h ('K') | « chrome/test/base/testing_browser_process.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698