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

Unified Diff: components/cronet/ios/cronet_environment.cc

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
Index: components/cronet/ios/cronet_environment.cc
diff --git a/components/cronet/ios/cronet_environment.cc b/components/cronet/ios/cronet_environment.cc
index 96eacd2ddcd07060f72b81718ac44a1f4010f40c..3ff9faaafbe605c9b10ddd36c23cc99127db68b1 100644
--- a/components/cronet/ios/cronet_environment.cc
+++ b/components/cronet/ios/cronet_environment.cc
@@ -274,8 +274,7 @@ void CronetEnvironment::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
« no previous file with comments | « chromecast/browser/url_request_context_factory.cc ('k') | content/browser/loader/resource_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698