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

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: Fix indent 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 unified diff | Download patch | Annotate | Revision Log
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 bool* NonBrowserUIDisplayed() {
sky 2012/07/25 15:51:48 Why go through a function here? Move non_browser_u
jeremy 2012/07/26 12:57:26 Done.
10 static bool non_browser_ui_displayed = false;
11 return &non_browser_ui_displayed;
12 }
13
14 } // namespace
15
16 // static
17 bool StartupMetricUtils::WasNonBrowserUIDisplayed() {
18 return *(NonBrowserUIDisplayed());
19 }
20
21 // static
22 void StartupMetricUtils::SetNonBrowserUIDisplayed() {
23 *(NonBrowserUIDisplayed()) = true;
24 }
OLDNEW
« chrome/common/startup_metric_utils.h ('K') | « chrome/common/startup_metric_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698