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

Issue 1681703002: Update NavigationHandleImpl#GetResponseHeaders method. (Closed)

Created:
4 years, 10 months ago by Donn Denman
Modified:
4 years, 10 months ago
Reviewers:
clamy, donnd
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, pedro (no code reviews), Theresa
Base URL:
https://chromium.googlesource.com/chromium/src.git@template-url-prototcol
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update NavigationHandleImpl#GetResponseHeaders method. Now GetResponseHeaders won't check the navigation state, instead it will just return a nullptr if there are no response headers available. In some cases the response headers are not available, but in the previous code there's no safe way to know that. This removes the CHECK for the navigation state that was causing this problem. BUG=526291 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/7bf92606f08d7fb9731b369da80108acdfb3ab7f Cr-Commit-Position: refs/heads/master@{#374747}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rework to revert new method, just remove check from Get method. #

Total comments: 2

Patch Set 3 : Updated a comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -7 lines) Patch
M content/browser/frame_host/navigation_handle_impl.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (8 generated)
Donn Denman
Hi Camile, PTAL. You probably know better than I do about how best to expose ...
4 years, 10 months ago (2016-02-09 01:06:53 UTC) #3
clamy
Thanks! Looking at the code, I think it just makes more sense to drop the ...
4 years, 10 months ago (2016-02-09 10:42:40 UTC) #4
donnd
Thanks for the quick reply; I'll update this soon.
4 years, 10 months ago (2016-02-09 15:06:27 UTC) #6
Donn Denman
Camile, PTAL. https://chromiumcodereview.appspot.com/1681703002/diff/1/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://chromiumcodereview.appspot.com/1681703002/diff/1/content/browser/frame_host/navigation_handle_impl.cc#newcode136 content/browser/frame_host/navigation_handle_impl.cc:136: return state_ >= WILL_REDIRECT_REQUEST && response_headers_.get(); On ...
4 years, 10 months ago (2016-02-10 01:05:05 UTC) #9
clamy
Thanks! Lgtm with one nit. https://codereview.chromium.org/1681703002/diff/20001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/1681703002/diff/20001/content/browser/frame_host/navigation_handle_impl.h#newcode111 content/browser/frame_host/navigation_handle_impl.h:111: // navigation is ready ...
4 years, 10 months ago (2016-02-10 12:15:11 UTC) #10
Donn Denman
Thanks Camile! https://codereview.chromium.org/1681703002/diff/20001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/1681703002/diff/20001/content/browser/frame_host/navigation_handle_impl.h#newcode111 content/browser/frame_host/navigation_handle_impl.h:111: // navigation is ready to commit. It ...
4 years, 10 months ago (2016-02-10 19:56:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681703002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681703002/40001
4 years, 10 months ago (2016-02-10 19:57:22 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-10 22:13:16 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:31:41 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7bf92606f08d7fb9731b369da80108acdfb3ab7f
Cr-Commit-Position: refs/heads/master@{#374747}

Powered by Google App Engine
This is Rietveld 408576698