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

Unified Diff: ios/crnet/crnet_environment.mm

Issue 2041863002: Remove HttpServerProperies::GetWeakPtr(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 6 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 | « ios/chrome/browser/ios_chrome_io_thread.mm ('k') | net/http/http_network_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/crnet/crnet_environment.mm
diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm
index 9c4686dfc94a139dfb80bc78b01d5b2de09d666a..e61bead8dfa4c7155e0f5abcf188c3683b0f8bc9 100644
--- a/ios/crnet/crnet_environment.mm
+++ b/ios/crnet/crnet_environment.mm
@@ -386,8 +386,7 @@ void CrNetEnvironment::InitializeOnNetworkThread() {
main_context_->set_transport_security_state(
new net::TransportSecurityState());
http_server_properties_.reset(new net::HttpServerPropertiesImpl());
- main_context_->set_http_server_properties(
- http_server_properties_->GetWeakPtr());
+ main_context_->set_http_server_properties(http_server_properties_.get());
// TODO(rdsmith): Note that the ".release()" calls below are leaking
// the objects in question; this should be fixed by having an object
// corresponding to URLRequestContextStorage that actually owns those
« no previous file with comments | « ios/chrome/browser/ios_chrome_io_thread.mm ('k') | net/http/http_network_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698