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

Issue 481853002: Add support for asynchronously loading modules from the background page. (Closed)

Created:
6 years, 4 months ago by Sam McNally
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add support for asynchronously loading modules from the background page. This is necessary to share Mojo services such as serial connections among all windows in an app as Mojo services created in a particular context are only usable while that context exists. BUG=389016 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290744

Patch Set 1 : #

Total comments: 2

Patch Set 2 : utils.promise #

Patch Set 3 : rebase #

Total comments: 9

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -109 lines) Patch
M extensions/renderer/resources/serial_custom_bindings.js View 1 2 3 3 chunks +31 lines, -23 lines 0 comments Download
M extensions/renderer/resources/utils.js View 1 2 3 2 chunks +34 lines, -0 lines 0 comments Download
M extensions/renderer/utils_unittest.cc View 1 2 3 2 chunks +40 lines, -86 lines 0 comments Download
A extensions/test/data/utils_unittest.js View 1 1 chunk +137 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Sam McNally
6 years, 4 months ago (2014-08-18 08:20:00 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/481853002/diff/60001/extensions/renderer/resources/utils.js File extensions/renderer/resources/utils.js (right): https://codereview.chromium.org/481853002/diff/60001/extensions/renderer/resources/utils.js#newcode162 extensions/renderer/resources/utils.js:162: chrome.runtime.getBackgroundPage(resolve); Promise is neat, but strictly speaking you need ...
6 years, 4 months ago (2014-08-18 21:22:11 UTC) #2
Sam McNally
https://codereview.chromium.org/481853002/diff/60001/extensions/renderer/resources/utils.js File extensions/renderer/resources/utils.js (right): https://codereview.chromium.org/481853002/diff/60001/extensions/renderer/resources/utils.js#newcode162 extensions/renderer/resources/utils.js:162: chrome.runtime.getBackgroundPage(resolve); On 2014/08/18 21:22:11, kalman wrote: > Promise is ...
6 years, 4 months ago (2014-08-19 01:44:56 UTC) #3
not at google - send to devlin
https://codereview.chromium.org/481853002/diff/120001/extensions/renderer/resources/utils.js File extensions/renderer/resources/utils.js (right): https://codereview.chromium.org/481853002/diff/120001/extensions/renderer/resources/utils.js#newcode138 extensions/renderer/resources/utils.js:138: * Wrap an asynchronous API call in a promise. ...
6 years, 4 months ago (2014-08-19 19:23:38 UTC) #4
Sam McNally
https://codereview.chromium.org/481853002/diff/120001/extensions/renderer/resources/utils.js File extensions/renderer/resources/utils.js (right): https://codereview.chromium.org/481853002/diff/120001/extensions/renderer/resources/utils.js#newcode138 extensions/renderer/resources/utils.js:138: * Wrap an asynchronous API call in a promise. ...
6 years, 4 months ago (2014-08-20 01:27:18 UTC) #5
not at google - send to devlin
lgtm https://codereview.chromium.org/481853002/diff/120001/extensions/renderer/resources/utils.js File extensions/renderer/resources/utils.js (right): https://codereview.chromium.org/481853002/diff/120001/extensions/renderer/resources/utils.js#newcode151 extensions/renderer/resources/utils.js:151: resolve($Array.slice(arguments)); On 2014/08/20 01:27:18, Sam McNally wrote: > ...
6 years, 4 months ago (2014-08-20 01:47:22 UTC) #6
Sam McNally
The CQ bit was checked by sammc@chromium.org
6 years, 4 months ago (2014-08-20 02:26:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sammc@chromium.org/481853002/160001
6 years, 4 months ago (2014-08-20 02:27:53 UTC) #8
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 03:38:38 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (160001) as 290744

Powered by Google App Engine
This is Rietveld 408576698