diff options
Diffstat (limited to 'chrome/browser/android/preferences')
-rw-r--r-- | chrome/browser/android/preferences/pref_service_bridge.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/android/preferences/pref_service_bridge.cc b/chrome/browser/android/preferences/pref_service_bridge.cc index 808d56e..aa37726 100644 --- a/chrome/browser/android/preferences/pref_service_bridge.cc +++ b/chrome/browser/android/preferences/pref_service_bridge.cc @@ -275,7 +275,7 @@ static jboolean GetPushNotificationsEnabled(JNIEnv* env, jobject obj) { HostContentSettingsMap* content_settings = GetOriginalProfile()->GetHostContentSettingsMap(); return GetBooleanForContentSetting(content_settings, - CONTENT_SETTINGS_TYPE_PUSH_MESSAGING); + CONTENT_SETTINGS_TYPE_NOTIFICATIONS); } static jboolean GetAllowLocationEnabled(JNIEnv* env, jobject obj) { @@ -442,7 +442,7 @@ static void SetPushNotificationsEnabled(JNIEnv* env, HostContentSettingsMap* host_content_settings_map = GetOriginalProfile()->GetHostContentSettingsMap(); host_content_settings_map->SetDefaultContentSetting( - CONTENT_SETTINGS_TYPE_PUSH_MESSAGING, + CONTENT_SETTINGS_TYPE_NOTIFICATIONS, allow ? CONTENT_SETTING_ASK : CONTENT_SETTING_BLOCK); } |