| Index: chrome/browser/task_manager/task_manager_util.cc
|
| diff --git a/chrome/browser/task_manager/task_manager_util.cc b/chrome/browser/task_manager/task_manager_util.cc
|
| index 27df180809e224421f339c8b32897d421c57a2c9..4e9762dce4fb377e5526ff168da497963035bd7a 100644
|
| --- a/chrome/browser/task_manager/task_manager_util.cc
|
| +++ b/chrome/browser/task_manager/task_manager_util.cc
|
| @@ -52,12 +52,11 @@ string16 GetProfileNameFromInfoCache(Profile* profile) {
|
|
|
| ProfileInfoCache& cache =
|
| g_browser_process->profile_manager()->GetProfileInfoCache();
|
| - size_t index = cache.GetIndexOfProfileWithPath(
|
| - profile->GetOriginalProfile()->GetPath());
|
| - if (index == std::string::npos)
|
| - return string16();
|
| + ProfileInfoEntry entry;
|
| + if (cache.GetInfoForProfile(profile->GetPath(), &entry))
|
| + return entry.GetDisplayName();
|
| else
|
| - return cache.GetNameOfProfileAtIndex(index);
|
| + return string16();
|
| }
|
|
|
| string16 GetTitleFromWebContents(content::WebContents* web_contents) {
|
|
|