Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2375)

Unified Diff: chrome/browser/task_manager/task_manager.cc

Issue 16072014: Don't open the 'stats for nerds' in a non-incognito window when incognito is forced. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: renamed getter, left a comment at GetLastUsedProfile Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/task_manager.cc
diff --git a/chrome/browser/task_manager/task_manager.cc b/chrome/browser/task_manager/task_manager.cc
index 1f525ced0c60cd1570617b76601f7e21920bdf32..b81d7a56647139044b9cc1de136d5661b7793f86 100644
--- a/chrome/browser/task_manager/task_manager.cc
+++ b/chrome/browser/task_manager/task_manager.cc
@@ -1540,7 +1540,7 @@ TaskManager* TaskManager::GetInstance() {
void TaskManager::OpenAboutMemory(chrome::HostDesktopType desktop_type) {
Browser* browser = chrome::FindOrCreateTabbedBrowser(
- ProfileManager::GetLastUsedProfile(), desktop_type);
+ ProfileManager::GetLastUsedProfileAllowedByPolicy(), desktop_type);
chrome::NavigateParams params(browser, GURL(chrome::kChromeUIMemoryURL),
content::PAGE_TRANSITION_LINK);
params.disposition = NEW_FOREGROUND_TAB;
« no previous file with comments | « chrome/browser/profiles/profile_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698