From 76ea109e501ad804a4539f61028515d7ff9b7e07 Mon Sep 17 00:00:00 2001 From: "rdevlin.cronin" Date: Tue, 15 Mar 2016 12:20:06 -0700 Subject: [Extensions] Remove unused parts of the preferencesPrivate API easyUnlockProximityRequired might still be used by someone, but it looks like the rest of this API can be removed. BUG=593166 TBR=erg@chromium.org (profiles/ pref change reviewed by gab@) Review URL: https://codereview.chromium.org/1776373002 Cr-Commit-Position: refs/heads/master@{#381278} --- .../common/extensions/api/preferences_private.json | 28 +--------------------- chrome/common/pref_names.cc | 6 ----- chrome/common/pref_names.h | 3 --- 3 files changed, 1 insertion(+), 36 deletions(-) (limited to 'chrome/common') diff --git a/chrome/common/extensions/api/preferences_private.json b/chrome/common/extensions/api/preferences_private.json index 8044178a..e409fb1 100644 --- a/chrome/common/extensions/api/preferences_private.json +++ b/chrome/common/extensions/api/preferences_private.json @@ -12,33 +12,7 @@ "$ref": "types.private.ChromeDirectSetting", "value": ["easy_unlock.proximity_required", {"type":"boolean"}], "description": "If true, a remote Easy Unlock device can only unlock the local device if it is in very close proximity (roughly, within a foot). This preference's value is a boolean, defaulting to false." - }, - "googleGeolocationAccessEnabled": { - "nocompile": true, - "$ref": "types.private.ChromeDirectSetting", - "value": ["googlegeolocationaccess.enabled", {"type":"boolean"}], - "description": "If enabled, Google services can access the user's location. This preference's value is a boolean, defaulting to false." - } - }, - "functions": [ - { - "name": "getSyncCategoriesWithoutPassphrase", - "description": "Returns a list of sync categories the user has enabled without using a custom passphrase for encryption. The possible values are those that can be returned from syncer::ModelTypeToString in sync/syncable/model_type.cc.", - "type": "function", - "parameters": [ - { - "name": "callback", - "type": "function", - "parameters": [ - { - "name": "categories", - "type": "array", - "items": {"type": "string"} - } - ] - } - ] } - ] + } } ] diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index cb643bb..503c0f9 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -1577,12 +1577,6 @@ const char kWebAppCreateInQuickLaunchBar[] = // corresponding access token. const char kGeolocationAccessToken[] = "geolocation.access_token"; -#if BUILDFLAG(ENABLE_GOOGLE_NOW) -// Boolean that is true when Google services can use the user's location. -const char kGoogleGeolocationAccessEnabled[] = - "googlegeolocationaccess.enabled"; -#endif - // Boolean that specifies whether to enable the Google Now Launcher extension. // Note: This is not the notifications component gated by ENABLE_GOOGLE_NOW. const char kGoogleNowLauncherEnabled[] = "google_now_launcher.enabled"; diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h index 38ff6ae..1e3bd63 100644 --- a/chrome/common/pref_names.h +++ b/chrome/common/pref_names.h @@ -562,9 +562,6 @@ extern const char kWebAppCreateInQuickLaunchBar[]; extern const char kGeolocationAccessToken[]; -#if BUILDFLAG(ENABLE_GOOGLE_NOW) -extern const char kGoogleGeolocationAccessEnabled[]; -#endif extern const char kGoogleNowLauncherEnabled[]; extern const char kDefaultAudioCaptureDevice[]; -- cgit v1.1