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

Unified Diff: chrome/browser/profiles/profile_io_data.h

Issue 10546083: Convert ProtocolHandlerRegistry to be a ProfileKeyedService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Respond to Elliot's comments. Created 8 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: chrome/browser/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index 64631c58a37fe4bf688a0bb8f5e078a786b8dbd6..133e25d249134657ea1b689793194c710d653af8 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -19,6 +19,7 @@
#include "chrome/browser/prefs/pref_member.h"
#include "content/public/browser/resource_context.h"
#include "net/cookies/cookie_monster.h"
+#include "net/url_request/url_request_job_factory.h"
class CookieSettings;
class DesktopNotificationService;
@@ -158,7 +159,12 @@ class ProfileIOData {
DesktopNotificationService* notification_service;
#endif
- scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry;
+ // This pointer exists only as a means of conveying the
+ // pointer from the factory on the UI thread to the consumer
+ // (URLRequestJobFactory) on the IO thread. Once delivered,
+ // URLRequestJobFactory assumes ownership of the pointer.
+ net::URLRequestJobFactory::Interceptor* protocol_handler_url_interceptor;
willchan no longer on Chromium 2012/06/22 19:01:56 I believe this will lead to leaks. Sometimes we cr
Steve McKay 2012/06/27 21:49:28 Great tip. Done!
+
// We need to initialize the ProxyConfigService from the UI thread
// because on linux it relies on initializing things through gconf,
// and needs to be on the main thread.

Powered by Google App Engine
This is Rietveld 408576698