From 56291ae590c976c1ce93d37224ebece5885002a4 Mon Sep 17 00:00:00 2001 From: "rlp@chromium.org" Date: Thu, 11 Apr 2013 21:36:55 +0000 Subject: [PATCH] [Profiles] Changing task manager to use GetLastUsedProfile instead of the deprecated GetDefaultProfileOrOffTheRecord() which was causing a crash. BUG=228816,83792 TEST=Click "Stats for Nerds" from the task manager from a non-initial profile and it should not crash Review URL: https://chromiumcodereview.appspot.com/13862018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193759 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/task_manager/task_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/browser/task_manager/task_manager.cc b/chrome/browser/task_manager/task_manager.cc index 2c144c0a90a8..459e64a4ff2f 100644 --- a/chrome/browser/task_manager/task_manager.cc +++ b/chrome/browser/task_manager/task_manager.cc @@ -1522,7 +1522,7 @@ TaskManager* TaskManager::GetInstance() { void TaskManager::OpenAboutMemory(chrome::HostDesktopType desktop_type) { Browser* browser = chrome::FindOrCreateTabbedBrowser( - ProfileManager::GetDefaultProfileOrOffTheRecord(), desktop_type); + ProfileManager::GetLastUsedProfile(), desktop_type); chrome::NavigateParams params(browser, GURL(chrome::kChromeUIMemoryURL), content::PAGE_TRANSITION_LINK); params.disposition = NEW_FOREGROUND_TAB; -- 2.11.4.GIT