| Index: chrome/browser/extensions/api/processes/processes_api.cc
|
| diff --git a/chrome/browser/extensions/api/processes/processes_api.cc b/chrome/browser/extensions/api/processes/processes_api.cc
|
| index df891d715079b10167ff81f11f281a993cb75d4c..84561b0f082f950f2b3b8a9d58bb1db5c2655ee8 100644
|
| --- a/chrome/browser/extensions/api/processes/processes_api.cc
|
| +++ b/chrome/browser/extensions/api/processes/processes_api.cc
|
| @@ -20,7 +20,6 @@
|
| #include "chrome/browser/extensions/extension_tab_util.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/task_manager/task_manager.h"
|
| -#include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/extensions/extension_error_utils.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -552,7 +551,7 @@ void GetProcessIdForTabFunction::Observe(
|
| }
|
|
|
| void GetProcessIdForTabFunction::GetProcessIdForTab() {
|
| - TabContents* contents = NULL;
|
| + content::WebContents* contents = NULL;
|
| int tab_index = -1;
|
| if (!ExtensionTabUtil::GetTabById(tab_id_, profile(), include_incognito(),
|
| NULL, NULL, &contents, &tab_index)) {
|
| @@ -562,7 +561,7 @@ void GetProcessIdForTabFunction::GetProcessIdForTab() {
|
| SetResult(Value::CreateIntegerValue(-1));
|
| SendResponse(false);
|
| } else {
|
| - int process_id = contents->web_contents()->GetRenderProcessHost()->GetID();
|
| + int process_id = contents->GetRenderProcessHost()->GetID();
|
| SetResult(Value::CreateIntegerValue(process_id));
|
| SendResponse(true);
|
| }
|
|
|