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

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

Issue 641453003: Add metrics for the number of attached displays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/chrome_browser_main_extra_parts_metrics_mac.h
diff --git a/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..35ee01d7ea11416ac38f13e080e67b020f661820
--- /dev/null
+++ b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h
@@ -0,0 +1,26 @@
+// 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_BROWSER_MAIN_EXTRA_PARTS_METRICS_MAC_H_
+#define CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_MAC_H_
+
+#include "base/macros.h"
+
+// This class records OSX metrics at start up, and during the lifetime of the
+// application.
+class ChromeBrowserMainExtraPartsMetricsMac {
+ public:
+ ChromeBrowserMainExtraPartsMetricsMac();
+ ~ChromeBrowserMainExtraPartsMetricsMac();
+
+ private:
+ // A pointer to the ObjC bridge used to listen to NSNotificationCenter
+ // notifications. Casted to a void* so that this file can be included in C++
+ // translation units.
+ void* metrics_bridge_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsMetricsMac);
+};
+
+#endif // CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698