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

Unified Diff: content/browser/ssl/ssl_error_handler.cc

Issue 9453028: Fix ExpiredCertAndGoBackTests (Closed)
Patch Set: Remove old comment Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/ssl/ssl_error_handler.cc
diff --git a/content/browser/ssl/ssl_error_handler.cc b/content/browser/ssl/ssl_error_handler.cc
index e3eceabddc6fdc51013e0f3da97ad09c0a3a8b8b..fc448382508dac17d340215892312d6ff8ae7ace 100644
--- a/content/browser/ssl/ssl_error_handler.cc
+++ b/content/browser/ssl/ssl_error_handler.cc
@@ -135,7 +135,7 @@ void SSLErrorHandler::CompleteCancelRequest(int error) {
net::URLRequest* request =
resource_dispatcher_host_->GetURLRequest(request_id_);
- if (request) {
+ if (request && request->is_pending()) {
darin (slow to review) 2012/02/27 19:26:25 oh, hmm... have you considered cancelling the req
tpayne 2012/02/27 19:30:51 I haven't seen any instances where the request had
wtc 2012/02/28 20:02:12 tpayne: do you know why the request may be not pen
tpayne 2012/02/28 21:53:58 The state that is causing the flakiness is request
tpayne 2012/02/29 01:15:11 The original cancel is occurring with this stack:
tpayne 2012/02/29 01:58:24 One more level up, it turns out that NavigateToPen
// The request can be NULL if it was cancelled by the renderer (as the
// result of the user navigating to a new page from the location bar).
DVLOG(1) << "CompleteCancelRequest() url: " << request->url().spec();
« chrome/browser/ssl/ssl_browser_tests.cc ('K') | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698