| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 3febac0b306aed89bd1092688ac79f1db6b36bc1..df45c6d210a090ce4074a574fe3516bab21b4d21 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -939,6 +939,11 @@ Profile::ExitType ProfileImpl::GetLastSessionExitType() {
|
| }
|
|
|
| PrefService* ProfileImpl::GetPrefs() {
|
| + return const_cast<PrefService*>(
|
| + static_cast<const ProfileImpl*>(this)->GetPrefs());
|
| +}
|
| +
|
| +const PrefService* ProfileImpl::GetPrefs() const {
|
| DCHECK(prefs_); // Should explicitly be initialized.
|
| return prefs_.get();
|
| }
|
|
|