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

Unified Diff: content/public/test/test_download_request_handler.cc

Issue 1897033002: Reland 'Convert //net and //chromecast to std::unordered_*' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix TestDownloadRequestHandler Created 4 years, 8 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
« no previous file with comments | « chromecast/net/net_util_cast.cc ('k') | net/android/network_change_notifier_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_download_request_handler.cc
diff --git a/content/public/test/test_download_request_handler.cc b/content/public/test/test_download_request_handler.cc
index e1d15b1a22dbba379d5a48e94f807421a6b36bb7..add301064ccabb8a71a3edbeee8fc66e13f81843 100644
--- a/content/public/test/test_download_request_handler.cc
+++ b/content/public/test/test_download_request_handler.cc
@@ -498,7 +498,8 @@ TestDownloadRequestHandler::Interceptor::Register(
void TestDownloadRequestHandler::Interceptor::Unregister() {
net::URLRequestFilter* filter = net::URLRequestFilter::GetInstance();
- filter->RemoveUrlHandler(url_);
+ GURL url = url_; // Make a copy as |this| will be deleted.
+ filter->RemoveUrlHandler(url);
// We are deleted now since the filter owned |this|.
}
« no previous file with comments | « chromecast/net/net_util_cast.cc ('k') | net/android/network_change_notifier_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698