summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/net_pref_observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/net/net_pref_observer.h')
-rw-r--r--chrome/browser/net/net_pref_observer.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/net/net_pref_observer.h b/chrome/browser/net/net_pref_observer.h
index a03129e..d023572 100644
--- a/chrome/browser/net/net_pref_observer.h
+++ b/chrome/browser/net/net_pref_observer.h
@@ -23,8 +23,9 @@ class PrerenderManager;
// Must be used only on the UI thread.
class NetPrefObserver : public NotificationObserver {
public:
- // |prefs| must outlive this NetPrefObserver. A reference is
- // held to |prerender_manager| if it is non-NULL.
+ // |prefs| must be non-NULL and |*prefs| must outlive this.
+ // |prerender_manager| may be NULL. If not, |*prerender_manager| must
+ // outlive this.
NetPrefObserver(PrefService* prefs,
prerender::PrerenderManager* prerender_manager);
~NetPrefObserver();
@@ -43,7 +44,7 @@ class NetPrefObserver : public NotificationObserver {
BooleanPrefMember network_prediction_enabled_;
BooleanPrefMember spdy_disabled_;
BooleanPrefMember http_throttling_enabled_;
- scoped_refptr<prerender::PrerenderManager> prerender_manager_;
+ prerender::PrerenderManager* prerender_manager_;
DISALLOW_COPY_AND_ASSIGN(NetPrefObserver);
};