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

Unified Diff: chrome/browser/task_management/providers/task.cc

Issue 1374283003: Reporting top cpu and memory consumers via rappor on chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed arbitrary given weights Created 5 years, 1 month 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/task_management/providers/task.cc
diff --git a/chrome/browser/task_management/providers/task.cc b/chrome/browser/task_management/providers/task.cc
index 849fafd5f67b783eb54d0d4c110039678c257726..643a7a0a1ae57cbd9d9f7171f524a96d0ca74f0e 100644
--- a/chrome/browser/task_management/providers/task.cc
+++ b/chrome/browser/task_management/providers/task.cc
@@ -17,12 +17,14 @@ int64 g_last_id = 0;
Task::Task(const base::string16& title,
+ const std::string& rappor_sample,
const gfx::ImageSkia* icon,
base::ProcessHandle handle)
: task_id_(g_last_id++),
network_usage_(-1),
current_byte_count_(-1),
title_(title),
+ rappor_sample_name_(rappor_sample),
icon_(icon ? *icon : gfx::ImageSkia()),
process_handle_(handle),
process_id_(base::GetProcId(handle)) {

Powered by Google App Engine
This is Rietveld 408576698