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

Issue 2801823003: [Presentation API] Change connection to 'connected' if start a presentation with "https://www.googl… (Closed)

Created:
3 years, 8 months ago by zhaobin
Modified:
3 years, 8 months ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, haraken, jam, kinuko+watch, mlamouri+watch-content_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Change connection to 'connected' if start a presentation with "https://www.google.com" - always create navigator.presentation.receiver object for receiver page - create receiver PSImpl in PresentationDispatcher::DidFinishLoadDocument() - do not reset() if receiver page navigates from blank to https://www.google.com BUG=693309 Review-Url: https://codereview.chromium.org/2801823003 Cr-Commit-Position: refs/heads/master@{#463820} Committed: https://chromium.googlesource.com/chromium/src/+/cae9c010f6e47a9b306f10b8889f86a65b6e9cb0

Patch Set 1 #

Patch Set 2 : fix layout test #

Patch Set 3 : fix content_unittest and layout test failures #

Total comments: 4

Patch Set 4 : resolve code review comments from Derek #

Total comments: 8

Patch Set 5 : resolve code review comments from mlamouri #

Total comments: 6

Patch Set 6 : resolve code review comments from Mark #

Total comments: 2

Patch Set 7 : resolve code review comments from Derek #

Total comments: 3

Patch Set 8 : resolve code review comments from mlamouri #

Patch Set 9 : merge with master #

Patch Set 10 : fix windows compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -3 lines) Patch
M content/renderer/presentation/presentation_dispatcher.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationReceiver.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/LocalFrameClientImpl.cpp View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (33 generated)
zhaobin
3 years, 8 months ago (2017-04-07 20:18:09 UTC) #10
imcheng
Looks good but I didn't look in depth into the Blink side. Can you clarify ...
3 years, 8 months ago (2017-04-08 00:05:59 UTC) #11
zhaobin
https://codereview.chromium.org/2801823003/diff/40001/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/2801823003/diff/40001/content/browser/presentation/presentation_service_impl.cc#newcode420 content/browser/presentation/presentation_service_impl.cc:420: if (receiver_delegate_) On 2017/04/08 00:05:59, imcheng wrote: > Please ...
3 years, 8 months ago (2017-04-08 01:36:01 UTC) #12
mlamouri (slow - plz ping)
Thanks for the CL :) In addition of the comments below, I would recommend using ...
3 years, 8 months ago (2017-04-10 12:50:29 UTC) #13
zhaobin
https://codereview.chromium.org/2801823003/diff/60001/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/2801823003/diff/60001/content/browser/presentation/presentation_service_impl.cc#newcode423 content/browser/presentation/presentation_service_impl.cc:423: if (receiver_delegate_) On 2017/04/10 12:50:28, mlamouri wrote: > How ...
3 years, 8 months ago (2017-04-10 21:05:59 UTC) #15
mark a. foltz
Thanks for finding a fix. It looks like this is a common pattern for Web ...
3 years, 8 months ago (2017-04-10 21:59:57 UTC) #16
mark a. foltz
Thanks for finding a fix. It looks like this is a common pattern for Web ...
3 years, 8 months ago (2017-04-10 22:00:24 UTC) #17
mark a. foltz
lgtm
3 years, 8 months ago (2017-04-10 22:02:00 UTC) #18
zhaobin
https://codereview.chromium.org/2801823003/diff/100001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2801823003/diff/100001/content/renderer/presentation/presentation_dispatcher.cc#newcode408 content/renderer/presentation/presentation_dispatcher.cc:408: void PresentationDispatcher::DidFinishDocumentLoad() { On 2017/04/10 21:59:57, mark a. foltz ...
3 years, 8 months ago (2017-04-11 00:03:09 UTC) #19
imcheng
lgtm https://codereview.chromium.org/2801823003/diff/120001/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h File third_party/WebKit/Source/modules/presentation/PresentationReceiver.h (right): https://codereview.chromium.org/2801823003/diff/120001/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h#newcode43 third_party/WebKit/Source/modules/presentation/PresentationReceiver.h:43: // This need to be eagerly created in ...
3 years, 8 months ago (2017-04-11 02:00:27 UTC) #20
zhaobin
+haraken@ to review: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp https://codereview.chromium.org/2801823003/diff/120001/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h File third_party/WebKit/Source/modules/presentation/PresentationReceiver.h (right): https://codereview.chromium.org/2801823003/diff/120001/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h#newcode43 third_party/WebKit/Source/modules/presentation/PresentationReceiver.h:43: // This need to be ...
3 years, 8 months ago (2017-04-11 02:57:51 UTC) #25
haraken
LGTM (Though I think the random initialization code in LocalFrameClientImpl::dispatchDidClearWindowObjectInMainWorld should be moved to a ...
3 years, 8 months ago (2017-04-11 03:50:21 UTC) #26
mlamouri (slow - plz ping)
lgtm with comment addressed. https://codereview.chromium.org/2801823003/diff/160001/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp File third_party/WebKit/Source/web/LocalFrameClientImpl.cpp (right): https://codereview.chromium.org/2801823003/diff/160001/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp#newcode166 third_party/WebKit/Source/web/LocalFrameClientImpl.cpp:166: PresentationReceiver::from(*document); nit: can you either ...
3 years, 8 months ago (2017-04-11 13:10:16 UTC) #27
mark a. foltz
https://codereview.chromium.org/2801823003/diff/160001/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp File third_party/WebKit/Source/web/LocalFrameClientImpl.cpp (right): https://codereview.chromium.org/2801823003/diff/160001/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp#newcode166 third_party/WebKit/Source/web/LocalFrameClientImpl.cpp:166: PresentationReceiver::from(*document); On 2017/04/11 at 13:10:16, mlamouri wrote: > nit: ...
3 years, 8 months ago (2017-04-11 17:34:07 UTC) #28
zhaobin
https://codereview.chromium.org/2801823003/diff/160001/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp File third_party/WebKit/Source/web/LocalFrameClientImpl.cpp (right): https://codereview.chromium.org/2801823003/diff/160001/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp#newcode166 third_party/WebKit/Source/web/LocalFrameClientImpl.cpp:166: PresentationReceiver::from(*document); On 2017/04/11 13:10:16, mlamouri wrote: > nit: can ...
3 years, 8 months ago (2017-04-11 17:44:00 UTC) #31
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/2801823003/220001
3 years, 8 months ago (2017-04-11 21:48:20 UTC) #44
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 8 months ago (2017-04-11 22:27:52 UTC) #47
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/2801823003/220001
3 years, 8 months ago (2017-04-11 22:55:20 UTC) #49
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 23:06:06 UTC) #52
Message was sent while issue was closed.
Committed patchset #10 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/cae9c010f6e47a9b306f10b8889f...

Powered by Google App Engine
This is Rietveld 408576698