Index: chrome/browser/android/preferences/pref_service_bridge.cc |
diff --git a/chrome/browser/android/preferences/pref_service_bridge.cc b/chrome/browser/android/preferences/pref_service_bridge.cc |
index 7d387cd5ba5e5dd989ebaffdc9c88d920eab3ac9..b3272c388cca093aadefd785c22d1cd41fac7e86 100644 |
--- a/chrome/browser/android/preferences/pref_service_bridge.cc |
+++ b/chrome/browser/android/preferences/pref_service_bridge.cc |
@@ -368,6 +368,12 @@ static jboolean GetNotificationsEnabled(JNIEnv* env, |
return GetBooleanForContentSetting(CONTENT_SETTINGS_TYPE_NOTIFICATIONS); |
} |
+static jboolean GetNotificationsVibrateEnabled( |
+ JNIEnv* env, |
+ const JavaParamRef<jobject>& obj) { |
+ return GetPrefService()->GetBoolean(prefs::kNotificationsVibrateEnabled); |
+} |
+ |
static jboolean GetAllowLocationEnabled(JNIEnv* env, |
const JavaParamRef<jobject>& obj) { |
return GetBooleanForContentSetting(CONTENT_SETTINGS_TYPE_GEOLOCATION); |
@@ -822,6 +828,12 @@ static void SetNotificationsEnabled(JNIEnv* env, |
allow ? CONTENT_SETTING_ASK : CONTENT_SETTING_BLOCK); |
} |
+static void SetNotificationsVibrateEnabled(JNIEnv* env, |
+ const JavaParamRef<jobject>& obj, |
+ jboolean enabled) { |
+ GetPrefService()->SetBoolean(prefs::kNotificationsVibrateEnabled, enabled); |
+} |
+ |
static void SetCrashReportingEnabled(JNIEnv* env, |
const JavaParamRef<jobject>& obj, |
jboolean reporting) { |