Fix RegisterPrefs not working in subclass.

Don't call virtual function in subclass's constructor.
This commit is contained in:
Haojian Wu 2015-10-06 15:19:38 +08:00
parent ab878c5f98
commit 73632d4189
2 changed files with 4 additions and 0 deletions

View file

@ -62,6 +62,7 @@ class BrowserContext : public base::RefCounted<BrowserContext>,
return url_request_getter_.get();
}
void InitPrefs();
PrefService* prefs() { return prefs_.get(); }
protected: