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

Issue 877993002: Implement base.IPC (Closed)

Created:
5 years, 11 months ago by kelvinp
Modified:
5 years, 10 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement base.IPC In Chrome Apps, some platform APIs can only be called from the background page (e.g. reloading a chrome.app.AppWindow). Likewise, some chrome API's must be initiated by user interaction, which can only be called from the foreground. This CL base.IPC that provides helper functions to invoke methods on different pages using chrome.runtime.sendMessage. BUG=452317 Committed: https://crrev.com/6f290c21326a7586347efcf796a9eebf794fc901 Cr-Commit-Position: refs/heads/master@{#313614}

Patch Set 1 #

Total comments: 30

Patch Set 2 : Reviewer's feedback #

Total comments: 2

Patch Set 3 : Add unittest #

Total comments: 18

Patch Set 4 : Address reviewer's feedback #

Total comments: 1

Patch Set 5 : Ready for Checkin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+399 lines, -12 lines) Patch
M remoting/remoting_webapp_files.gypi View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M remoting/webapp/base/js/base.js View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
A remoting/webapp/base/js/ipc.js View 1 2 3 4 1 chunk +187 lines, -0 lines 0 comments Download
M remoting/webapp/js_proto/chrome_proto.js View 1 2 3 3 chunks +7 lines, -3 lines 0 comments Download
M remoting/webapp/unittests/base_unittest.js View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M remoting/webapp/unittests/chrome_mocks.js View 1 2 3 4 5 chunks +22 lines, -9 lines 0 comments Download
A remoting/webapp/unittests/ipc_unittest.js View 1 2 3 1 chunk +139 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
kelvinp
FYI: Jamie, this is iteration I that with feedback ported from the previous CL. I ...
5 years, 11 months ago (2015-01-27 01:27:22 UTC) #2
kelvinp
PTAL https://codereview.chromium.org/877993002/diff/1/remoting/webapp/base/js/ipc.js File remoting/webapp/base/js/ipc.js (right): https://codereview.chromium.org/877993002/diff/1/remoting/webapp/base/js/ipc.js#newcode34 remoting/webapp/base/js/ipc.js:34: * This will invoke foo() with the args ...
5 years, 11 months ago (2015-01-27 01:35:00 UTC) #4
Jamie
Mostly looks good, with the exception of one of the tests that looks a bit ...
5 years, 11 months ago (2015-01-27 22:52:25 UTC) #5
kelvinp
PTAL https://codereview.chromium.org/877993002/diff/1/remoting/webapp/base/js/ipc.js File remoting/webapp/base/js/ipc.js (right): https://codereview.chromium.org/877993002/diff/1/remoting/webapp/base/js/ipc.js#newcode49 remoting/webapp/base/js/ipc.js:49: base.IPC = function() { On 2015/01/27 22:52:24, Jamie ...
5 years, 11 months ago (2015-01-28 01:31:52 UTC) #7
Jamie
LGTM as long as my question about deepCopy doesn't raise any concerns. https://codereview.chromium.org/877993002/diff/100001/remoting/webapp/unittests/chrome_mocks.js File remoting/webapp/unittests/chrome_mocks.js ...
5 years, 10 months ago (2015-01-28 18:57:47 UTC) #8
kelvinp
FYI
5 years, 10 months ago (2015-01-28 22:19:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/877993002/140001
5 years, 10 months ago (2015-01-28 22:20:25 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:140001)
5 years, 10 months ago (2015-01-28 23:30:07 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 23:31:11 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6f290c21326a7586347efcf796a9eebf794fc901
Cr-Commit-Position: refs/heads/master@{#313614}

Powered by Google App Engine
This is Rietveld 408576698