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

Unified Diff: chrome/browser/task_manager.cc

Issue 543045: Be more frugal with goats in these challenging economic times. (Closed)
Patch Set: link to design doc Created 10 years, 11 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/task_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager.cc
diff --git a/chrome/browser/task_manager.cc b/chrome/browser/task_manager.cc
index ab2044fa017fde5d80c795374a6ea5ce66953e37..2c6c281ff50f86b97d408858f08fc8dfbd2cf6f8 100644
--- a/chrome/browser/task_manager.cc
+++ b/chrome/browser/task_manager.cc
@@ -64,9 +64,6 @@ std::wstring FormatStatsSize(const WebKit::WebCache::ResourceTypeStat& stat) {
// TaskManagerModel class
////////////////////////////////////////////////////////////////////////////////
-// static
-int TaskManagerModel::goats_teleported_ = 0;
-
TaskManagerModel::TaskManagerModel(TaskManager* task_manager)
: update_state_(IDLE) {
@@ -172,9 +169,10 @@ std::wstring TaskManagerModel::GetResourceStatsValue(int index, int col_id)
}
std::wstring TaskManagerModel::GetResourceGoatsTeleported(int index) const {
+ // See design doc at http://go/at-teleporter for more information.
DCHECK(index < ResourceCount());
- goats_teleported_ += rand() & 4095;
- return UTF16ToWide(base::FormatNumber(goats_teleported_));
+ int goats_teleported = rand() & 15;
+ return UTF16ToWide(base::FormatNumber(goats_teleported));
}
std::wstring TaskManagerModel::GetResourceWebCoreImageCacheSize(
« no previous file with comments | « chrome/browser/task_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698