| Index: chrome/browser/memory_details.cc
|
| diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc
|
| index c06ed53ede94dc111ce5231eb72cb4ea5192f4b3..7f7b84ff7437e00e1736644f9ba8aa6f6092b72f 100644
|
| --- a/chrome/browser/memory_details.cc
|
| +++ b/chrome/browser/memory_details.cc
|
| @@ -232,11 +232,14 @@ void MemoryDetails::CollectChildInfoOnUIThread() {
|
| TabContents* contents = host_delegate->GetAsTabContents();
|
| if (!contents) {
|
| if (extension_process_map->Contains(host->process()->GetID())) {
|
| - const Extension* extension =
|
| - extension_service->GetExtensionByURL(url);
|
| - if (extension) {
|
| - string16 title = UTF8ToUTF16(extension->name());
|
| - process.titles.push_back(title);
|
| + if (url.SchemeIs(chrome::kExtensionScheme)) {
|
| + const Extension* extension =
|
| + extension_service->extensions()->
|
| + GetByURL(ExtensionURLInfo(url));
|
| + if (extension) {
|
| + string16 title = UTF8ToUTF16(extension->name());
|
| + process.titles.push_back(title);
|
| + }
|
| }
|
| } else if (process.renderer_type ==
|
| ProcessMemoryInformation::RENDERER_UNKNOWN) {
|
|
|