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

Unified Diff: chrome/browser/task_manager/child_process_resource_provider.cc

Issue 286143010: Remove knowledge of nacl from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | chrome/browser/task_manager/resource_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/child_process_resource_provider.cc
diff --git a/chrome/browser/task_manager/child_process_resource_provider.cc b/chrome/browser/task_manager/child_process_resource_provider.cc
index ca276074ef92a0e913876dc4a32ec02a3e3352bb..eb0510c56d243f4b1fd87059b94d1d38f1dd25af 100644
--- a/chrome/browser/task_manager/child_process_resource_provider.cc
+++ b/chrome/browser/task_manager/child_process_resource_provider.cc
@@ -31,12 +31,10 @@ class ChildProcessResource : public Resource {
ChildProcessResource(int process_type,
const base::string16& name,
base::ProcessHandle handle,
- int unique_process_id,
- int nacl_debug_stub_port);
+ int unique_process_id);
virtual ~ChildProcessResource();
// Resource methods:
- virtual int GetNaClDebugStubPort() const OVERRIDE;
virtual base::string16 GetTitle() const OVERRIDE;
virtual base::string16 GetProfileName() const OVERRIDE;
virtual gfx::ImageSkia GetIcon() const OVERRIDE;
@@ -59,7 +57,6 @@ class ChildProcessResource : public Resource {
base::ProcessHandle handle_;
int pid_;
int unique_process_id_;
- int nacl_debug_stub_port_;
mutable base::string16 title_;
bool network_usage_support_;
@@ -77,13 +74,11 @@ ChildProcessResource::ChildProcessResource(
int process_type,
const base::string16& name,
base::ProcessHandle handle,
- int unique_process_id,
- int nacl_debug_stub_port)
+ int unique_process_id)
: process_type_(process_type),
name_(name),
handle_(handle),
unique_process_id_(unique_process_id),
- nacl_debug_stub_port_(nacl_debug_stub_port),
network_usage_support_(false) {
// We cache the process id because it's not cheap to calculate, and it won't
// be available when we get the plugin disconnected notification.
@@ -99,10 +94,6 @@ ChildProcessResource::~ChildProcessResource() {
}
// Resource methods:
-int ChildProcessResource::GetNaClDebugStubPort() const {
- return nacl_debug_stub_port_;
-}
-
base::string16 ChildProcessResource::GetTitle() const {
if (title_.empty())
title_ = GetLocalizedTitle();
@@ -318,8 +309,7 @@ void ChildProcessResourceProvider::AddToTaskManager(
child_process_data.process_type,
child_process_data.name,
child_process_data.handle,
- child_process_data.id,
- child_process_data.nacl_debug_stub_port);
+ child_process_data.id);
resources_[child_process_data.handle] = resource;
pid_to_resources_[resource->process_id()] = resource;
task_manager_->AddResource(resource);
« no previous file with comments | « no previous file | chrome/browser/task_manager/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698