| Index: chrome/browser/extensions/api/preference/chrome_direct_setting_api.cc
|
| diff --git a/chrome/browser/extensions/api/preference/chrome_direct_setting_api.cc b/chrome/browser/extensions/api/preference/chrome_direct_setting_api.cc
|
| index 49850f1fa2091df00226c24a5be2976ad61095f5..b153dfdcf1874cc91544080d3ac91febb5c4d11a 100644
|
| --- a/chrome/browser/extensions/api/preference/chrome_direct_setting_api.cc
|
| +++ b/chrome/browser/extensions/api/preference/chrome_direct_setting_api.cc
|
| @@ -75,9 +75,9 @@ base::LazyInstance<PreferenceWhitelist> preference_whitelist =
|
| static base::LazyInstance<ProfileKeyedAPIFactory<ChromeDirectSettingAPI> >
|
| g_factory = LAZY_INSTANCE_INITIALIZER;
|
|
|
| -ChromeDirectSettingAPI::ChromeDirectSettingAPI(Profile* profile)
|
| - : profile_(profile) {
|
| - preference_whitelist.Get().RegisterEventListeners(profile, this);
|
| +ChromeDirectSettingAPI::ChromeDirectSettingAPI(content::BrowserContext* context)
|
| + : profile_(Profile::FromBrowserContext(context)) {
|
| + preference_whitelist.Get().RegisterEventListeners(profile_, this);
|
| }
|
|
|
| ChromeDirectSettingAPI::~ChromeDirectSettingAPI() {}
|
| @@ -108,9 +108,9 @@ bool ChromeDirectSettingAPI::IsPreferenceOnWhitelist(
|
| return preference_whitelist.Get().IsPreferenceOnWhitelist(pref_key);
|
| }
|
|
|
| -ChromeDirectSettingAPI* ChromeDirectSettingAPI::Get(Profile* profile) {
|
| - return
|
| - ProfileKeyedAPIFactory<ChromeDirectSettingAPI>::GetForProfile(profile);
|
| +ChromeDirectSettingAPI* ChromeDirectSettingAPI::Get(
|
| + content::BrowserContext* context) {
|
| + return ProfileKeyedAPIFactory<ChromeDirectSettingAPI>::GetForProfile(context);
|
| }
|
|
|
| // ProfileKeyedAPI implementation.
|
|
|