Introduce MetricsServiceClient and ChromeMetricsServiceClient.

In a later CL, MetricsService ctor will take an instance of
MetricsServiceClient.

BUG=374238

Review URL: https://codereview.chromium.org/292693003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271380 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/metrics/chrome_metrics_service_client.h b/chrome/browser/metrics/chrome_metrics_service_client.h
new file mode 100644
index 0000000..2d6b8d734
--- /dev/null
+++ b/chrome/browser/metrics/chrome_metrics_service_client.h
@@ -0,0 +1,32 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
+#define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "components/metrics/metrics_service_client.h"
+
+// ChromeMetricsServiceClient provides an implementation of MetricsServiceClient
+// that depends on chrome/.
+class ChromeMetricsServiceClient : metrics::MetricsServiceClient {
+ public:
+  ChromeMetricsServiceClient();
+  virtual ~ChromeMetricsServiceClient();
+
+  // metrics::MetricsServiceClient:
+  virtual void SetClientID(const std::string& client_id) OVERRIDE;
+  virtual bool IsOffTheRecordSessionActive() OVERRIDE;
+  virtual std::string GetApplicationLocale() OVERRIDE;
+  virtual bool GetBrand(std::string* brand_code) OVERRIDE;
+  virtual metrics::SystemProfileProto::Channel GetChannel() OVERRIDE;
+  virtual std::string GetVersionString() OVERRIDE;
+
+ private:
+  DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
+};
+
+#endif  // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_