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. |