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

Unified Diff: chrome/browser/chromeos/resource_reporter/resource_reporter.h

Issue 2808503003: Fix static initializers in the Chrome OS ResourceReporter. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/resource_reporter/resource_reporter.h
diff --git a/chrome/browser/chromeos/resource_reporter/resource_reporter.h b/chrome/browser/chromeos/resource_reporter/resource_reporter.h
index cfa2bc82152a4af2d909ac800381bc9233dda300..e33992a552a8e97f86b9bb03340b04f92acc7843 100644
--- a/chrome/browser/chromeos/resource_reporter/resource_reporter.h
+++ b/chrome/browser/chromeos/resource_reporter/resource_reporter.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
@@ -132,12 +133,12 @@ class ResourceReporter : public task_manager::TaskManagerObserver,
NUM_RANGES = 7,
};
- // The CPU and memory thresholds beyond which the tasks will be reported.
- static const double kTaskCpuThresholdForReporting;
- static const int64_t kTaskMemoryThresholdForReporting;
-
ResourceReporter();
+ // The CPU and memory thresholds beyond which the tasks will be reported.
+ static double GetTaskCpuThresholdForReporting();
+ static int64_t GetTaskMemoryThresholdForReporting();
+
// Creates a Rappor sample for the given |task_record|.
static std::unique_ptr<rappor::Sample> CreateRapporSample(
rappor::RapporServiceImpl* rappor_service,

Powered by Google App Engine
This is Rietveld 408576698