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

Unified Diff: extensions/browser/api/web_request/web_request_api.cc

Issue 1465503002: Revert of CHECK that URLRequestJobs are not orphaned while blocked by extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make git do the revert Created 5 years, 1 month 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
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.h ('k') | net/base/layered_network_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/web_request/web_request_api.cc
diff --git a/extensions/browser/api/web_request/web_request_api.cc b/extensions/browser/api/web_request/web_request_api.cc
index 33616986882c26ad23ae7afcf88338c3875cb35b..d1a14dd5b5a0050d0f2b9141caf7e58f6364c880 100644
--- a/extensions/browser/api/web_request/web_request_api.cc
+++ b/extensions/browser/api/web_request/web_request_api.cc
@@ -8,7 +8,6 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "base/debug/alias.h"
#include "base/json/json_writer.h"
#include "base/lazy_instance.h"
#include "base/macros.h"
@@ -1227,20 +1226,6 @@ void ExtensionWebRequestEventRouter::OnURLRequestDestroyed(
base::Time::Now());
}
-void ExtensionWebRequestEventRouter::OnURLRequestJobOrphaned(
- void* browser_context,
- const net::URLRequest* request) {
- // See https://crbug.com/289715. While a URLRequest is blocking on an
- // extension, it may not orphan jobs unless OnURLRequestDestroyed is called
- // first.
- //
- // TODO(davidben): Remove this when the crash has been diagnosed.
- char url_buf[128];
- base::strlcpy(url_buf, request->url().spec().c_str(), arraysize(url_buf));
- base::debug::Alias(url_buf);
- CHECK_EQ(0u, blocked_requests_.count(request->identifier()));
-}
-
void ExtensionWebRequestEventRouter::ClearPendingCallbacks(
const net::URLRequest* request) {
blocked_requests_.erase(request->identifier());
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.h ('k') | net/base/layered_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698