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

Issue 2807683003: Prevent loading of session extensions into the sign-in profile (Closed)

Created:
3 years, 8 months ago by emaxx
Modified:
3 years, 8 months ago
Reviewers:
Devlin, yoshiki
CC:
chromium-reviews, extensions-reviews_chromium.org, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent loading of session extensions into the sign-in profile The session extensions (like "Web Store" or "Bookmark Manager") shouldn't be loaded into the original profile. However, they are loaded currently as long as the --login-manager flag is not specified. This happens in the following cases: * On Chrome OS inside the user session after the browser has crashed at least once; * In tests for Chrome OS that use stub or test user directly, without going through the login screen; * In dev builds for Chrome OS running under Linux, when --login-manager is not passed via command line. The effect of this bug is that: 1. Unwanted extensions were loaded, resulting in extra resources usage; 2. Log spam from signin_screen_policy_provider.cc with messages like "Denying load of Extension ..."; 3. Error popups in tests that try to load extensions via command line when --enable-login-screen-apps was additionally specified. This CL fixes this by extending the condition under which the session extensions are skipped. Now it's also checking whether the profile is the sign-in profile or the initial profile. BUG=576464, 674316 TEST=extended browser tests for file manager extensions Review-Url: https://codereview.chromium.org/2807683003 Cr-Commit-Position: refs/heads/master@{#463661} Committed: https://chromium.googlesource.com/chromium/src/+/095cadb4ac6310a09f9f76b81fc0ae8784323a87

Patch Set 1 #

Patch Set 2 : Fix the condition #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M chrome/browser/chromeos/file_manager/file_manager_browsertest_base.cc View 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.cc View 1 1 chunk +4 lines, -2 lines 2 comments Download

Messages

Total messages: 31 (24 generated)
emaxx
Devlin, PTAL. This is the second part of the fixes for the sign-in profile (the ...
3 years, 8 months ago (2017-04-10 14:13:13 UTC) #15
Devlin
lgtm... this logic seems a little odd to me, but I know very little about ...
3 years, 8 months ago (2017-04-10 15:40:54 UTC) #20
emaxx
On 2017/04/10 15:40:54, Devlin wrote: > lgtm... this logic seems a little odd to me, ...
3 years, 8 months ago (2017-04-11 12:12:36 UTC) #22
emaxx
+yoshiki@: Please review chrome/browser/chromeos/file_manager/file_manager_browsertest_base.cc.
3 years, 8 months ago (2017-04-11 12:18:59 UTC) #25
yoshiki
lgtm
3 years, 8 months ago (2017-04-11 15:29:57 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2807683003/20001
3 years, 8 months ago (2017-04-11 15:32:35 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 17:08:11 UTC) #31
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/095cadb4ac6310a09f9f76b81fc0...

Powered by Google App Engine
This is Rietveld 408576698