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

Unified Diff: chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_constants.cc

Issue 547063003: Remove the unmaintained performance monitor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
Index: chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_constants.cc
diff --git a/chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_constants.cc b/chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_constants.cc
deleted file mode 100644
index a510e247a4535701e1e2895329baab3037e6f565..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_constants.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_constants.h"
-
-#include "base/logging.h"
-#include "base/time/time.h"
-#include "chrome/browser/performance_monitor/constants.h"
-
-namespace performance_monitor {
-
-namespace {
-
-// Keep this list synced with the enum declared in the .h file.
-const UnitDetails kUnitDetailsList[] = {
- { UNIT_BYTES, MEASUREMENT_TYPE_MEMORY, 1 },
- { UNIT_KILOBYTES, MEASUREMENT_TYPE_MEMORY, kBytesPerKilobyte },
- { UNIT_MEGABYTES, MEASUREMENT_TYPE_MEMORY, kBytesPerMegabyte },
- { UNIT_GIGABYTES, MEASUREMENT_TYPE_MEMORY, kBytesPerGigabyte },
- { UNIT_TERABYTES, MEASUREMENT_TYPE_MEMORY, kBytesPerTerabyte },
- { UNIT_MICROSECONDS, MEASUREMENT_TYPE_TIME, 1 },
- { UNIT_MILLISECONDS, MEASUREMENT_TYPE_TIME,
- base::Time::kMicrosecondsPerMillisecond },
- { UNIT_SECONDS, MEASUREMENT_TYPE_TIME, base::Time::kMicrosecondsPerSecond },
- { UNIT_MINUTES, MEASUREMENT_TYPE_TIME, base::Time::kMicrosecondsPerMinute },
- { UNIT_HOURS, MEASUREMENT_TYPE_TIME, base::Time::kMicrosecondsPerHour },
- { UNIT_DAYS, MEASUREMENT_TYPE_TIME, base::Time::kMicrosecondsPerDay },
- { UNIT_WEEKS, MEASUREMENT_TYPE_TIME, base::Time::kMicrosecondsPerWeek },
- { UNIT_MONTHS, MEASUREMENT_TYPE_TIME, kMicrosecondsPerMonth },
- { UNIT_YEARS, MEASUREMENT_TYPE_TIME, kMicrosecondsPerYear },
- { UNIT_PERCENT, MEASUREMENT_TYPE_PERCENT, 1 },
-};
-
-COMPILE_ASSERT(ARRAYSIZE_UNSAFE(kUnitDetailsList) == UNIT_UNDEFINED,
- unit_details_doesnt_match_unit_types);
-
-} // namespace
-
-const UnitDetails* GetUnitDetails(Unit unit) {
- if (unit == UNIT_UNDEFINED) {
- LOG(ERROR) << "Request for undefined unit";
- return NULL;
- }
-
- return &kUnitDetailsList[unit];
-}
-
-} // namespace performance_monitor

Powered by Google App Engine
This is Rietveld 408576698