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

Unified Diff: chrome/browser/performance_monitor/constants.cc

Issue 10915318: Revert 157168 - Add guards to metric values; erase bad events/metrics from db (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « chrome/browser/performance_monitor/constants.h ('k') | chrome/browser/performance_monitor/database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/performance_monitor/constants.cc
===================================================================
--- chrome/browser/performance_monitor/constants.cc (revision 157181)
+++ chrome/browser/performance_monitor/constants.cc (working copy)
@@ -4,10 +4,10 @@
#include "chrome/browser/performance_monitor/constants.h"
-#include "base/time.h"
-
namespace performance_monitor {
+// TODO(chebert): i18n on all constants.
+
// The error message displayed when a metric's details are not found.
const char kMetricNotFoundError[] = "Metric details not found.";
@@ -28,16 +28,4 @@
// collisions in the database.
const char kStateProfilePrefix[] = "profile";
-// Unit values
-// Memory measurements
-const int64 kBytesPerKilobyte = 1 << 10;
-const int64 kBytesPerMegabyte = kBytesPerKilobyte * (1 << 10);
-const int64 kBytesPerGigabyte = kBytesPerMegabyte * (1 << 10);
-const int64 kBytesPerTerabyte = kBytesPerGigabyte * (1 << 10);
-
-// Time measurements
-const int64 kMicrosecondsPerMonth = base::Time::kMicrosecondsPerDay * 30;
-const int64 kMicrosecondsPerYear = base::Time::kMicrosecondsPerDay * 365;
-
-
} // namespace performance_monitor
« no previous file with comments | « chrome/browser/performance_monitor/constants.h ('k') | chrome/browser/performance_monitor/database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698