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

Unified Diff: chrome/common/startup_metric_utils.cc

Issue 10662046: Add a histogram to measure browser window display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Spelling Created 8 years, 5 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
« no previous file with comments | « chrome/common/startup_metric_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/startup_metric_utils.cc
diff --git a/chrome/common/startup_metric_utils.cc b/chrome/common/startup_metric_utils.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f2d9395f402f571aed2aef3b1f4de03a0af7a9bf
--- /dev/null
+++ b/chrome/common/startup_metric_utils.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 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.
+
+#include "chrome/common/startup_metric_utils.h"
+
+namespace {
+
+// Value may potentially be modified and read on different threads.
sky 2012/07/28 02:13:35 Is this comment right? Isn't this only used on the
+static volatile bool g_non_browser_ui_displayed = false;
+
+} // namespace
+
+namespace startup_metric_utils {
+
+bool WasNonBrowserUIDisplayed() {
+ return g_non_browser_ui_displayed;
+}
+
+void SetNonBrowserUIDisplayed() {
+ g_non_browser_ui_displayed = true;
+}
+
+} // namespace startup_metric_utils
« no previous file with comments | « chrome/common/startup_metric_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698