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 // 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 |
OLD | NEW |