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

Issue 16072014: Don't open the 'stats for nerds' in a non-incognito window when incognito is forced. (Closed)

Created:
7 years, 6 months ago by Joao da Silva
Modified:
7 years, 6 months ago
CC:
chromium-reviews, rginda+watch_chromium.org, yoshiki+watch_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

Don't open the 'stats for nerds' in a non-incognito window when incognito is forced. Incognito mode may be always-on by configuration policy. When that is set then the TaskManager shouldn't open a new non-incognito window. The TaskManager doesn't have an associated Profile, so it uses the last used Profile. This change introduces a getter for the last used allowed Profile, which returns the OTR Profile if that's dictated by policy. BUG=244246 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203128

Patch Set 1 #

Patch Set 2 : renamed getter, left a comment at GetLastUsedProfile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -1 line) Patch
M chrome/browser/profiles/profile_manager.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Joao da Silva
Please have a look: @mirandac: profiles/ @yoshiki: task_manager/ Miranda, I'm not sure if this is ...
7 years, 6 months ago (2013-05-29 12:58:50 UTC) #1
Miranda Callahan
On 2013/05/29 12:58:50, Joao da Silva wrote: > Please have a look: > > @mirandac: ...
7 years, 6 months ago (2013-05-29 13:41:04 UTC) #2
Joao da Silva
> What do you think about doing this not as a separate function, but instead ...
7 years, 6 months ago (2013-05-29 14:59:54 UTC) #3
Miranda Callahan
On 2013/05/29 14:59:54, Joao da Silva wrote: > > What do you think about doing ...
7 years, 6 months ago (2013-05-29 15:10:51 UTC) #4
yoshiki
task_manager lgtm
7 years, 6 months ago (2013-05-29 16:08:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/16072014/3002
7 years, 6 months ago (2013-05-30 00:12:47 UTC) #6
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 12:31:00 UTC) #7
Message was sent while issue was closed.
Change committed as 203128

Powered by Google App Engine
This is Rietveld 408576698