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

Unified Diff: chrome/browser/metrics/metrics_service.h

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/browser/metrics/metrics_service.h
diff --git a/chrome/browser/metrics/metrics_service.h b/chrome/browser/metrics/metrics_service.h
index 91eb0ead3f5b28fbc8cf06e1fdb26ecaf76686a0..d97a1bca785b850eecc864973056061e9db46b9e 100644
--- a/chrome/browser/metrics/metrics_service.h
+++ b/chrome/browser/metrics/metrics_service.h
@@ -43,6 +43,10 @@ class DictionaryValue;
class MessageLoopProxy;
}
+namespace chromeos {
+class DeviceSettingsProviderTest;
+}
+
namespace content {
class RenderProcessHost;
}
@@ -133,6 +137,12 @@ class MetricsService : public content::NotificationObserver,
// Set the dirty flag, which will require a later call to LogCleanShutdown().
static void LogNeedForCleanShutdown();
+ protected:
+ // Constructor used in tests.
+ explicit MetricsService(bool active);
+
+ friend class chromeos::DeviceSettingsProviderTest;
jar (doing other things) 2012/03/16 16:29:16 I'm always leery about adding friendship to classe
pastarmovj 2012/03/21 15:23:27 I decided to split this CL and get all MetricsServ
+
private:
// The MetricsService has a lifecycle that is stored as a state.
// See metrics_service.cc for description of this lifecycle.

Powered by Google App Engine
This is Rietveld 408576698