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

Issue 2733293004: Override CloseContents in HeadlessWebContentsImpl Delegate so that the json/close endpoint works wi… (Closed)

Created:
3 years, 9 months ago by Oleg Sushkov
Modified:
3 years, 9 months ago
Reviewers:
Sami
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Override CloseContents in HeadlessWebContentsImpl Delegate so that the json/close endpoint works with headless BUG=699404 Review-Url: https://codereview.chromium.org/2733293004 Cr-Commit-Position: refs/heads/master@{#458255} Committed: https://chromium.googlesource.com/chromium/src/+/15ae1e89e749d6443b6caffdbc78ad24f945aa67

Patch Set 1 #

Total comments: 1

Patch Set 2 : Override CloseContents in HeadlessWebContentsImpl Delegate so that the json/close endpoint works wi… #

Patch Set 3 : Fixed a nullptr issue #

Total comments: 1

Patch Set 4 : removed the call to web_contents_.Close() from the headless web contents destructor. This call caus… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -1 line) Patch
M headless/lib/browser/headless_web_contents_impl.cc View 1 2 3 2 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 25 (11 generated)
Oleg Sushkov
3 years, 9 months ago (2017-03-08 05:43:36 UTC) #2
Sami
lgtm with a nit. https://codereview.chromium.org/2733293004/diff/1/headless/lib/browser/headless_web_contents_impl.cc File headless/lib/browser/headless_web_contents_impl.cc (right): https://codereview.chromium.org/2733293004/diff/1/headless/lib/browser/headless_web_contents_impl.cc#newcode106 headless/lib/browser/headless_web_contents_impl.cc:106: std::vector<HeadlessWebContents*> allContents = s/allContents/all_contents/
3 years, 9 months ago (2017-03-08 10:47:24 UTC) #3
Oleg Sushkov
On 2017/03/08 at 10:47:24, skyostil wrote: > lgtm with a nit. > > https://codereview.chromium.org/2733293004/diff/1/headless/lib/browser/headless_web_contents_impl.cc > ...
3 years, 9 months ago (2017-03-13 00:28:51 UTC) #4
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/2733293004/20001
3 years, 9 months ago (2017-03-13 00:29:08 UTC) #7
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/407177)
3 years, 9 months ago (2017-03-13 01:08:08 UTC) #9
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/2733293004/40001
3 years, 9 months ago (2017-03-13 06:19:07 UTC) #12
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/407244)
3 years, 9 months ago (2017-03-13 06:58:03 UTC) #14
Sami
https://codereview.chromium.org/2733293004/diff/40001/headless/lib/browser/headless_web_contents_impl.cc File headless/lib/browser/headless_web_contents_impl.cc (right): https://codereview.chromium.org/2733293004/diff/40001/headless/lib/browser/headless_web_contents_impl.cc#newcode110 headless/lib/browser/headless_web_contents_impl.cc:110: if (wc == nullptr) { nit: You can just ...
3 years, 9 months ago (2017-03-13 12:40:28 UTC) #15
Oleg Sushkov
On 2017/03/13 at 12:40:28, skyostil wrote: > https://codereview.chromium.org/2733293004/diff/40001/headless/lib/browser/headless_web_contents_impl.cc > File headless/lib/browser/headless_web_contents_impl.cc (right): > > https://codereview.chromium.org/2733293004/diff/40001/headless/lib/browser/headless_web_contents_impl.cc#newcode110 ...
3 years, 9 months ago (2017-03-15 04:49:04 UTC) #16
Sami
On 2017/03/15 04:49:04, Oleg Sushkov wrote: > On 2017/03/13 at 12:40:28, skyostil wrote: > > ...
3 years, 9 months ago (2017-03-15 18:19:42 UTC) #17
Oleg Sushkov
I question the need to call "Close" in the ~HeadlessWebContentsImpl(). When you look at the ...
3 years, 9 months ago (2017-03-15 23:51:05 UTC) #18
Sami
On 2017/03/15 23:51:05, Oleg Sushkov wrote: > I question the need to call "Close" in ...
3 years, 9 months ago (2017-03-17 16:35:23 UTC) #19
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/2733293004/60001
3 years, 9 months ago (2017-03-20 23:42:31 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 00:37:28 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/15ae1e89e749d6443b6caffdbc78...

Powered by Google App Engine
This is Rietveld 408576698