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

Issue 862793003: Expose requireAsync method and make it more robust (Closed)

Created:
5 years, 11 months ago by Kevin M
Modified:
5 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, chromium-apps-reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org, haibinlu, Wez
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add mojoPrivate.requireAsync method to chrome IDL. Add unit tests for requireAsync. R=mfoltz@chromium.org,sammc@chromium.org CC=wez@chromium.org,haibinlu@chromium.org BUG= Committed: https://crrev.com/151e70d6fbf2c524959bb225d86a557204571105 Cr-Commit-Position: refs/heads/master@{#313403}

Patch Set 1 #

Patch Set 2 : Unit tests. #

Total comments: 1

Patch Set 3 : Removed module missing error handling from requireAsync. #

Patch Set 4 : Resync with master #

Total comments: 4

Patch Set 5 : Addressed unit test feedback #

Total comments: 1

Patch Set 6 : Remove extraneous log spam #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -0 lines) Patch
M extensions/common/api/mojo_private.idl View 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/renderer/api/mojo_private/mojo_private_unittest.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M extensions/renderer/resources/mojo_private_custom_bindings.js View 1 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/test/data/mojo_private_unittest.js View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Kevin M
5 years, 11 months ago (2015-01-21 20:51:40 UTC) #2
Sam McNally
https://codereview.chromium.org/862793003/diff/20001/extensions/renderer/module_system.cc File extensions/renderer/module_system.cc (right): https://codereview.chromium.org/862793003/diff/20001/extensions/renderer/module_system.cc#newcode551 extensions/renderer/module_system.cc:551: if ((source.IsEmpty() || source->IsUndefined()) && I'm not a fan ...
5 years, 11 months ago (2015-01-22 07:42:11 UTC) #3
Kevin M
The motivation behind this CL was to allow extensions to do feature testing and error ...
5 years, 11 months ago (2015-01-22 18:23:15 UTC) #4
Kevin M
OK, I read through the Mojo versioning proposal and think that it might be a ...
5 years, 11 months ago (2015-01-26 22:02:25 UTC) #5
Sam McNally
LGTM with a couple test nits. https://codereview.chromium.org/862793003/diff/60001/extensions/test/data/mojo_private_unittest.js File extensions/test/data/mojo_private_unittest.js (right): https://codereview.chromium.org/862793003/diff/60001/extensions/test/data/mojo_private_unittest.js#newcode47 extensions/test/data/mojo_private_unittest.js:47: mojoPrivate.requireAsync('dependency').then( Does this ...
5 years, 11 months ago (2015-01-27 04:06:29 UTC) #6
Kevin M
+rockot for: extensions/common/api/mojo_private.idl extensions/renderer/api/mojo_private/mojo_private_unittest.cc extensions/renderer/resources/mojo_private_custom_bindings.js Thanks! https://codereview.chromium.org/862793003/diff/60001/extensions/test/data/mojo_private_unittest.js File extensions/test/data/mojo_private_unittest.js (right): https://codereview.chromium.org/862793003/diff/60001/extensions/test/data/mojo_private_unittest.js#newcode47 extensions/test/data/mojo_private_unittest.js:47: mojoPrivate.requireAsync('dependency').then( On 2015/01/27 ...
5 years, 11 months ago (2015-01-27 18:10:09 UTC) #8
mark a. foltz
Superficial review, but lgtm https://codereview.chromium.org/862793003/diff/80001/extensions/test/data/mojo_private_unittest.js File extensions/test/data/mojo_private_unittest.js (right): https://codereview.chromium.org/862793003/diff/80001/extensions/test/data/mojo_private_unittest.js#newcode36 extensions/test/data/mojo_private_unittest.js:36: console.log('requireAsync'); Is this necessary?
5 years, 10 months ago (2015-01-27 21:58:54 UTC) #9
Ken Rockot(use gerrit already)
nothing to add to previous comments, lgtm
5 years, 10 months ago (2015-01-27 22:03:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/862793003/100001
5 years, 10 months ago (2015-01-27 22:43:40 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-01-27 23:42:38 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-01-27 23:43:48 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/151e70d6fbf2c524959bb225d86a557204571105
Cr-Commit-Position: refs/heads/master@{#313403}

Powered by Google App Engine
This is Rietveld 408576698