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

Issue 2892403002: Introduce lock screen app context to extension features (Closed)

Created:
3 years, 7 months ago by tbarzic
Modified:
3 years, 6 months ago
Reviewers:
Devlin, Ilya Sherman, meacer
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce lock screen app context to extension features The context will be used for platform apps that are runnable on Chrome OS lock screen - the context will be derived from the containing browser process. Apps running in sign-in profile after the user was logged in will run in 'lock screen' script context. Because sign-in profile is Chrome concept, unknown to extensions layer, the information will have to be relayed to extensions system. The script context is determined in two places: * ScriptContextSet, which determines script context used in the render process. The script context set will be flagged as lock screen context during renderer initialization - it will be sent from the browser process in SetSessionInfo IPC message. * ProcessMap, used in browser process. ProcessMaps are created per browser context - process maps belonging to sign-in profile will be marked as lock screen context process map (as before that point, the sign-in profile will be used for login) BUG=715781 Review-Url: https://codereview.chromium.org/2892403002 Cr-Commit-Position: refs/heads/master@{#478506} Committed: https://chromium.googlesource.com/chromium/src/+/8e89b0b1a1bd64d016a24a182a715aeedb712469

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 3

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 9

Patch Set 8 : . #

Total comments: 8

Patch Set 9 : . #

Total comments: 2

Patch Set 10 : . #

Total comments: 2

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -21 lines) Patch
M chrome/browser/extensions/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 2 chunks +27 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_features.md View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -1 line 0 comments Download
M chrome/renderer/extensions/chrome_extensions_renderer_client.cc View 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extensions_browser_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/info_map.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/info_map.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/process_map.h View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M extensions/browser/process_map.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M extensions/browser/process_map_unittest.cc View 1 2 3 4 5 6 7 2 chunks +101 lines, -0 lines 0 comments Download
M extensions/browser/renderer_startup_helper.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M extensions/browser/test_extensions_browser_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/test_extensions_browser_client.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/common/extension_messages.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M extensions/common/features/feature.h View 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/features/simple_feature.cc View 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/features/simple_feature_unittest.cc View 2 1 chunk +24 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -1 line 0 comments Download
M extensions/renderer/js_extension_bindings_system.cc View 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/script_context.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/script_context_set.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -1 line 0 comments Download
M extensions/renderer/script_context_set.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -4 lines 0 comments Download
M extensions/shell/browser/shell_extensions_browser_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/shell_extensions_browser_client.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/feature_compiler.py View 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/json_schema_compiler/feature_compiler_test.py View 2 1 chunk +5 lines, -1 line 0 comments Download
M tools/json_schema_compiler/test/features_generation_unittest.cc View 1 2 1 chunk +8 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (36 generated)
tbarzic
3 years, 7 months ago (2017-05-23 02:15:33 UTC) #11
Devlin
https://codereview.chromium.org/2892403002/diff/40001/extensions/common/extension.h File extensions/common/extension.h (right): https://codereview.chromium.org/2892403002/diff/40001/extensions/common/extension.h#newcode165 extensions/common/extension.h:165: RUNS_ON_LOCK_SCREEN = 1 << 13, I'm not sure we ...
3 years, 7 months ago (2017-05-23 16:51:53 UTC) #14
tbarzic
https://codereview.chromium.org/2892403002/diff/40001/extensions/common/extension.h File extensions/common/extension.h (right): https://codereview.chromium.org/2892403002/diff/40001/extensions/common/extension.h#newcode165 extensions/common/extension.h:165: RUNS_ON_LOCK_SCREEN = 1 << 13, On 2017/05/23 16:51:53, Devlin ...
3 years, 7 months ago (2017-05-23 17:30:24 UTC) #15
Devlin
https://codereview.chromium.org/2892403002/diff/40001/extensions/common/extension.h File extensions/common/extension.h (right): https://codereview.chromium.org/2892403002/diff/40001/extensions/common/extension.h#newcode165 extensions/common/extension.h:165: RUNS_ON_LOCK_SCREEN = 1 << 13, On 2017/05/23 17:30:23, tbarzic ...
3 years, 7 months ago (2017-05-25 20:42:02 UTC) #16
tbarzic
On 2017/05/25 20:42:02, Devlin (catching up) wrote: > https://codereview.chromium.org/2892403002/diff/40001/extensions/common/extension.h > File extensions/common/extension.h (right): > > ...
3 years, 7 months ago (2017-05-25 22:00:18 UTC) #17
Devlin
On 2017/05/25 22:00:18, tbarzic wrote: > On 2017/05/25 20:42:02, Devlin (catching up) wrote: > > ...
3 years, 7 months ago (2017-05-27 02:02:23 UTC) #18
tbarzic
On 2017/05/27 02:02:23, Devlin (US Holiday May 29) wrote: > On 2017/05/25 22:00:18, tbarzic wrote: ...
3 years, 7 months ago (2017-05-27 03:27:59 UTC) #19
Devlin
On 2017/05/27 03:27:59, tbarzic wrote: > On 2017/05/27 02:02:23, Devlin (US Holiday May 29) wrote: ...
3 years, 6 months ago (2017-05-30 20:22:30 UTC) #20
tbarzic
On 2017/05/30 20:22:30, Devlin wrote: > On 2017/05/27 03:27:59, tbarzic wrote: > > On 2017/05/27 ...
3 years, 6 months ago (2017-05-30 22:51:17 UTC) #21
tbarzic
Updated the cl to push the 'lock screen context' bit from Chrome to extensions layer ...
3 years, 6 months ago (2017-05-31 17:32:26 UTC) #31
Devlin
Nice, just a few last concerns but otherwise this looks pretty good. https://codereview.chromium.org/2892403002/diff/120001/chrome/browser/extensions/chrome_extensions_browser_client.cc File chrome/browser/extensions/chrome_extensions_browser_client.cc ...
3 years, 6 months ago (2017-06-01 22:17:58 UTC) #32
tbarzic
https://codereview.chromium.org/2892403002/diff/120001/chrome/browser/extensions/chrome_extensions_browser_client.cc File chrome/browser/extensions/chrome_extensions_browser_client.cc (right): https://codereview.chromium.org/2892403002/diff/120001/chrome/browser/extensions/chrome_extensions_browser_client.cc#newcode442 chrome/browser/extensions/chrome_extensions_browser_client.cc:442: bool ChromeExtensionsBrowserClient::IsLockScreenContext( On 2017/06/01 22:17:58, Devlin wrote: > Is ...
3 years, 6 months ago (2017-06-02 00:49:05 UTC) #33
Devlin
lgtm. I still have some questions, but I don't think they need to block this. ...
3 years, 6 months ago (2017-06-03 02:19:15 UTC) #34
tbarzic
https://codereview.chromium.org/2892403002/diff/140001/chrome/common/extensions/api/_features.md File chrome/common/extensions/api/_features.md (right): https://codereview.chromium.org/2892403002/diff/140001/chrome/common/extensions/api/_features.md#newcode209 chrome/common/extensions/api/_features.md:209: `lock_screen_extension`, `web_page`, `webui`, and `unblessed_extension`. On 2017/06/03 02:19:14, Devlin ...
3 years, 6 months ago (2017-06-05 19:35:40 UTC) #35
tbarzic
+meacer for extensions/common/extension_messages.h
3 years, 6 months ago (2017-06-08 18:06:16 UTC) #37
tbarzic
+isherman for histograms.xml
3 years, 6 months ago (2017-06-09 21:10:12 UTC) #39
Ilya Sherman
Metrics LGTM https://codereview.chromium.org/2892403002/diff/160001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2892403002/diff/160001/tools/metrics/histograms/histograms.xml#newcode19052 tools/metrics/histograms/histograms.xml:19052: + context. nit: Mebbe mention "lock screen" ...
3 years, 6 months ago (2017-06-09 21:11:38 UTC) #40
tbarzic
https://codereview.chromium.org/2892403002/diff/160001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2892403002/diff/160001/tools/metrics/histograms/histograms.xml#newcode19052 tools/metrics/histograms/histograms.xml:19052: + context. On 2017/06/09 21:11:38, Ilya Sherman wrote: > ...
3 years, 6 months ago (2017-06-09 21:26:34 UTC) #41
meacer
extensions/common/extension_messages.h Lgtm https://codereview.chromium.org/2892403002/diff/180001/extensions/browser/extensions_browser_client.h File extensions/browser/extensions_browser_client.h (right): https://codereview.chromium.org/2892403002/diff/180001/extensions/browser/extensions_browser_client.h#newcode266 extensions/browser/extensions_browser_client.h:266: // Whether the browser context is associted ...
3 years, 6 months ago (2017-06-09 21:32:34 UTC) #42
tbarzic
https://codereview.chromium.org/2892403002/diff/180001/extensions/browser/extensions_browser_client.h File extensions/browser/extensions_browser_client.h (right): https://codereview.chromium.org/2892403002/diff/180001/extensions/browser/extensions_browser_client.h#newcode266 extensions/browser/extensions_browser_client.h:266: // Whether the browser context is associted with Chrome ...
3 years, 6 months ago (2017-06-09 21:47:35 UTC) #43
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/2892403002/200001
3 years, 6 months ago (2017-06-09 21:48:41 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/404022)
3 years, 6 months ago (2017-06-09 22:08:05 UTC) #48
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/2892403002/240001
3 years, 6 months ago (2017-06-09 23:42:34 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/476081)
3 years, 6 months ago (2017-06-10 01:46:51 UTC) #56
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/2892403002/280001
3 years, 6 months ago (2017-06-10 02:20:57 UTC) #59
commit-bot: I haz the power
3 years, 6 months ago (2017-06-10 03:26:07 UTC) #62
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/8e89b0b1a1bd64d016a24a182a71...

Powered by Google App Engine
This is Rietveld 408576698