Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2179)

Unified Diff: chrome/browser/android/preferences/pref_service_bridge.cc

Issue 2470043002: Android: Clean up dead code involving now-removed Fullscreen permission. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java_sources.gni ('k') | chrome/browser/android/preferences/website_preference_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1e3726ba2d46fa426fb458a60dad59636d94f6b5..cea57e4cbdd124c06b3b184f47765a6a01091351 100644
--- a/chrome/browser/android/preferences/pref_service_bridge.cc
+++ b/chrome/browser/android/preferences/pref_service_bridge.cc
@@ -439,25 +439,6 @@ static jboolean GetIncognitoModeManaged(JNIEnv* env,
prefs::kIncognitoModeAvailability);
}
-static jboolean GetFullscreenManaged(JNIEnv* env,
- const JavaParamRef<jobject>& obj) {
- return IsContentSettingManaged(CONTENT_SETTINGS_TYPE_FULLSCREEN);
-}
-
-static jboolean GetFullscreenAllowed(JNIEnv* env,
- const JavaParamRef<jobject>& obj) {
- // In the simplified fullscreen case, fullscreen is always allowed.
- // TODO(mgiuca): Remove this pref once all data associated with it is deleted
- // (https://crbug.com/591896).
- if (base::FeatureList::IsEnabled(features::kSimplifiedFullscreenUI))
- return true;
-
- HostContentSettingsMap* content_settings =
- HostContentSettingsMapFactory::GetForProfile(GetOriginalProfile());
- return content_settings->GetDefaultContentSetting(
- CONTENT_SETTINGS_TYPE_FULLSCREEN, NULL) == CONTENT_SETTING_ALLOW;
-}
-
static jboolean IsMetricsReportingEnabled(JNIEnv* env,
const JavaParamRef<jobject>& obj) {
PrefService* local_state = g_browser_process->local_state();
@@ -883,16 +864,6 @@ static void SetMicEnabled(JNIEnv* env,
allow ? CONTENT_SETTING_ASK : CONTENT_SETTING_BLOCK);
}
-static void SetFullscreenAllowed(JNIEnv* env,
- const JavaParamRef<jobject>& obj,
- jboolean allow) {
- HostContentSettingsMap* host_content_settings_map =
- HostContentSettingsMapFactory::GetForProfile(GetOriginalProfile());
- host_content_settings_map->SetDefaultContentSetting(
- CONTENT_SETTINGS_TYPE_FULLSCREEN,
- allow ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_ASK);
-}
-
static void SetNotificationsEnabled(JNIEnv* env,
const JavaParamRef<jobject>& obj,
jboolean allow) {
« no previous file with comments | « chrome/android/java_sources.gni ('k') | chrome/browser/android/preferences/website_preference_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698