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

Side by Side 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: Improve code comments Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/startup_metric_utils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/common/startup_metric_utils.h"
6
7 namespace {
8
9 // Mark as volatile to defensively make sure usage is thread-safe.
10 // Note that at the time of this writing, access is only on the UI thread.
11 static volatile bool g_non_browser_ui_displayed = false;
12
13 } // namespace
14
15 namespace startup_metric_utils {
16
17 bool WasNonBrowserUIDisplayed() {
18 return g_non_browser_ui_displayed;
19 }
20
21 void SetNonBrowserUIDisplayed() {
22 g_non_browser_ui_displayed = true;
23 }
24
25 } // namespace startup_metric_utils
OLDNEW
« 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