Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 } | |
| OLD | NEW |