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

Side by Side Diff: components/browser_watcher/stability_debugging.cc

Issue 2753573002: Remove 'global' user-data in favor of 'process' user-data. (Closed)
Patch Set: rebased Created 3 years, 8 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
« no previous file with comments | « components/browser_watcher/postmortem_report_extractor.cc ('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
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
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
OLDNEW
« no previous file with comments | « components/browser_watcher/postmortem_report_extractor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698