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

Issue 1129293002: Fix the System Profile with extensions. (Closed)

Created:
5 years, 7 months ago by Mike Lerman
Modified:
5 years, 7 months ago
CC:
chromium-reviews, rginda+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the System Profile to not load extensions. It could otherwise be forced to by GPO. A few releases ago I introduced a System Profile to back the User Manager (https://codereview.chromium.org/847733005). This profile, however, is causing some problems. I'm trying to reduce those by making clearer the contract of what it's for: A profile that doesn't take a browser window, has no extensions, writes little to disk, etc. This certainly addresses issue #4 raised within the bug, and address the other issues as well (I can't repro them). This CL generally hardens Chrome for the System Profile in a lot of the same ways we do the Guest Profile. BUG=482176 TBR=jcivelli@chromium.org (a function, called from chrome/test that lives in c/b/profiles, was renamed). Committed: https://crrev.com/7831f57d5f56e9cafe77388b20a83a90d6eb7918 Cr-Commit-Position: refs/heads/master@{#331276}

Patch Set 1 #

Patch Set 2 : Another guard #

Patch Set 3 : Lots more system profile checks. DCHECK in browser.cc constructor. #

Patch Set 4 : Rebase #

Patch Set 5 : one more system profile check #

Patch Set 6 : and a few fewer unnecessary checks #

Total comments: 36

Patch Set 7 : msw comments #

Total comments: 8

Patch Set 8 : msw round 2 #

Patch Set 9 : Rebase (and some autogenerated actions.xml entries) #

Total comments: 6

Patch Set 10 : change action message #

Patch Set 11 : remove autogenerated actions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -35 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/extensions/chrome_process_manager_delegate.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_system_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 6 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/profiles/profile_window.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/test/base/testing_profile_manager.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
Mike Lerman
Hi msw@, rockot@, A few releases ago I introduced a System Profile to back the ...
5 years, 7 months ago (2015-05-20 18:39:42 UTC) #2
Ken Rockot(use gerrit already)
extensions lgtm I'm wondering how common it will now be to pair the condition "is ...
5 years, 7 months ago (2015-05-20 21:27:52 UTC) #3
Mike Lerman
On 2015/05/20 21:27:52, Ken Rockot wrote: > extensions lgtm > > I'm wondering how common ...
5 years, 7 months ago (2015-05-21 00:21:40 UTC) #4
Ken Rockot(use gerrit already)
Cool, I'm not too worried about it either way. Just something I thought about. My ...
5 years, 7 months ago (2015-05-21 00:24:15 UTC) #5
msw
I don't think a helper like IsGuestOrSystemProfile() would be too useful yet. https://codereview.chromium.org/1129293002/diff/100001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm ...
5 years, 7 months ago (2015-05-21 04:34:43 UTC) #6
Mike Lerman
https://codereview.chromium.org/1129293002/diff/100001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/1129293002/diff/100001/chrome/browser/app_controller_mac.mm#newcode1257 chrome/browser/app_controller_mac.mm:1257: // If the last profile was locked, we have ...
5 years, 7 months ago (2015-05-21 15:27:32 UTC) #7
Mike Lerman
Hi Ilya, Can you take a look at tools/metrics/actions for me, please? Thanks! Mike
5 years, 7 months ago (2015-05-21 15:28:39 UTC) #9
msw
https://codereview.chromium.org/1129293002/diff/100001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1129293002/diff/100001/chrome/browser/profiles/profile_manager.cc#newcode445 chrome/browser/profiles/profile_manager.cc:445: SetGuestProfilePrefs(profile); On 2015/05/21 15:27:30, Mike Lerman wrote: > On ...
5 years, 7 months ago (2015-05-21 17:48:12 UTC) #10
Mike Lerman
Thanks Mike - comments addressed below. Robert, can you take a look at chrome/browser/app_controller_mac.mm please? ...
5 years, 7 months ago (2015-05-21 19:24:34 UTC) #12
Ilya Sherman
https://codereview.chromium.org/1129293002/diff/160001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/1129293002/diff/160001/tools/metrics/actions/actions.xml#newcode1787 tools/metrics/actions/actions.xml:1787: </action> What is your plan for understanding this action? ...
5 years, 7 months ago (2015-05-21 19:29:13 UTC) #13
Robert Sesek
app_controller_mac.mm stamp lgtm
5 years, 7 months ago (2015-05-21 19:36:27 UTC) #14
msw
lgtm modulo Ilya's UMA comments.
5 years, 7 months ago (2015-05-21 19:36:48 UTC) #15
Mike Lerman
Comments addressed, Ilya. Thanks! https://codereview.chromium.org/1129293002/diff/160001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/1129293002/diff/160001/tools/metrics/actions/actions.xml#newcode1787 tools/metrics/actions/actions.xml:1787: </action> On 2015/05/21 19:29:12, Ilya ...
5 years, 7 months ago (2015-05-21 20:38:09 UTC) #16
Ilya Sherman
https://codereview.chromium.org/1129293002/diff/160001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/1129293002/diff/160001/tools/metrics/actions/actions.xml#newcode1787 tools/metrics/actions/actions.xml:1787: </action> On 2015/05/21 20:38:09, Mike Lerman wrote: > On ...
5 years, 7 months ago (2015-05-21 21:18:14 UTC) #17
Mike Lerman
https://codereview.chromium.org/1129293002/diff/160001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/1129293002/diff/160001/tools/metrics/actions/actions.xml#newcode1787 tools/metrics/actions/actions.xml:1787: </action> On 2015/05/21 21:18:14, Ilya Sherman wrote: > On ...
5 years, 7 months ago (2015-05-25 10:41:30 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129293002/200001
5 years, 7 months ago (2015-05-25 10:41:45 UTC) #21
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 7 months ago (2015-05-25 11:40:28 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-05-25 11:41:23 UTC) #23
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/7831f57d5f56e9cafe77388b20a83a90d6eb7918
Cr-Commit-Position: refs/heads/master@{#331276}

Powered by Google App Engine
This is Rietveld 408576698