| Index: chrome/browser/memory_details.cc
|
| diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc
|
| index c6e057b68b641bfe283f9a664985433c8ae6aa22..fbf669df4f29a3cfcb225535bc60878d2b9483b5 100644
|
| --- a/chrome/browser/memory_details.cc
|
| +++ b/chrome/browser/memory_details.cc
|
| @@ -240,12 +240,12 @@ void MemoryDetails::CollectChildInfoOnUIThread() {
|
| // The RenderProcessHost may host multiple WebContentses. Any
|
| // of them which contain diagnostics information make the whole
|
| // process be considered a diagnostics process.
|
| - if (!widget->IsRenderView())
|
| + RenderViewHost* host = RenderViewHost::From(widget);
|
| + if (!host)
|
| continue;
|
|
|
| process.process_type = content::PROCESS_TYPE_RENDERER;
|
| bool is_extension = false;
|
| - RenderViewHost* host = RenderViewHost::From(widget);
|
| #if defined(ENABLE_EXTENSIONS)
|
| content::BrowserContext* context =
|
| render_process_host->GetBrowserContext();
|
|
|