OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/browser_watcher/stability_debugging.h" | 5 #include "components/browser_watcher/stability_debugging.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/debug/activity_tracker.h" | 9 #include "base/debug/activity_tracker.h" |
10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 base::File::FLAG_DELETE_ON_CLOSE); | 90 base::File::FLAG_DELETE_ON_CLOSE); |
91 } | 91 } |
92 #endif // defined(OS_WIN) | 92 #endif // defined(OS_WIN) |
93 | 93 |
94 void SetStabilityDataInt(base::StringPiece name, int64_t value) { | 94 void SetStabilityDataInt(base::StringPiece name, int64_t value) { |
95 base::debug::GlobalActivityTracker* global_tracker = | 95 base::debug::GlobalActivityTracker* global_tracker = |
96 base::debug::GlobalActivityTracker::Get(); | 96 base::debug::GlobalActivityTracker::Get(); |
97 if (!global_tracker) | 97 if (!global_tracker) |
98 return; // Activity tracking isn't enabled. | 98 return; // Activity tracking isn't enabled. |
99 | 99 |
100 global_tracker->global_data().SetInt(name, value); | 100 global_tracker->process_data().SetInt(name, value); |
101 } | 101 } |
102 | 102 |
103 } // namespace browser_watcher | 103 } // namespace browser_watcher |
OLD | NEW |