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

Unified Diff: chrome/browser/sync/glue/http_bridge.h

Issue 332006: Remove the restriction that ChromeURLRequestContextGetter needs to be release... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to latest changes Created 11 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 | « chrome/browser/profile.cc ('k') | chrome/browser/sync/glue/http_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/http_bridge.h
===================================================================
--- chrome/browser/sync/glue/http_bridge.h (revision 32405)
+++ chrome/browser/sync/glue/http_bridge.h (working copy)
@@ -146,7 +146,7 @@
// Gets a customized URLRequestContext for bridged requests. See
// RequestContext definition for details.
- RequestContextGetter* context_getter_for_request_;
+ scoped_refptr<RequestContextGetter> context_getter_for_request_;
// Our hook into the network layer is a URLFetcher. USED ONLY ON THE IO LOOP,
// so we can block created_on_loop_ while the fetch is in progress.
@@ -196,8 +196,7 @@
// This request context is built on top of the baseline context and shares
// common components.
HttpBridge::RequestContextGetter* GetRequestContextGetter();
- // We must Release() this from the IO thread.
- HttpBridge::RequestContextGetter* request_context_getter_;
+ scoped_refptr<HttpBridge::RequestContextGetter> request_context_getter_;
DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory);
};
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/browser/sync/glue/http_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698