OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/common/features.h" | 9 #include "chrome/common/features.h" |
10 #include "chrome/common/pref_font_webkit_names.h" | 10 #include "chrome/common/pref_font_webkit_names.h" |
11 | 11 |
12 namespace prefs { | 12 namespace prefs { |
13 | 13 |
14 // *************** PROFILE PREFS *************** | 14 // *************** PROFILE PREFS *************** |
15 // These are attached to the user profile | 15 // These are attached to the user profile |
16 | 16 |
17 #if defined(OS_CHROMEOS) && defined(ENABLE_APP_LIST) | 17 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST) |
18 // A preference to keep list of Android apps and their state. | 18 // A preference to keep list of Android apps and their state. |
19 const char kArcApps[] = "arc.apps"; | 19 const char kArcApps[] = "arc.apps"; |
20 // A preference to store backup and restore state for Android apps. | 20 // A preference to store backup and restore state for Android apps. |
21 const char kArcBackupRestoreEnabled[] = "arc.backup_restore.enabled"; | 21 const char kArcBackupRestoreEnabled[] = "arc.backup_restore.enabled"; |
22 // A preference to keep Android apps enabled state. | 22 // A preference to keep Android apps enabled state. |
23 const char kArcEnabled[] = "arc.enabled"; | 23 const char kArcEnabled[] = "arc.enabled"; |
24 // A preference to keep user's consent to use location service. | 24 // A preference to keep user's consent to use location service. |
25 const char kArcLocationServiceEnabled[] = "arc.location_service.enabled"; | 25 const char kArcLocationServiceEnabled[] = "arc.location_service.enabled"; |
26 // A preference to keep list of Android packages and their infomation. | 26 // A preference to keep list of Android packages and their infomation. |
27 const char kArcPackages[] = "arc.packages"; | 27 const char kArcPackages[] = "arc.packages"; |
(...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2074 "network_profile.last_warning_time"; | 2074 "network_profile.last_warning_time"; |
2075 #endif | 2075 #endif |
2076 | 2076 |
2077 #if defined(OS_CHROMEOS) | 2077 #if defined(OS_CHROMEOS) |
2078 // The RLZ brand code, if enabled. | 2078 // The RLZ brand code, if enabled. |
2079 const char kRLZBrand[] = "rlz.brand"; | 2079 const char kRLZBrand[] = "rlz.brand"; |
2080 // Whether RLZ pings are disabled. | 2080 // Whether RLZ pings are disabled. |
2081 const char kRLZDisabled[] = "rlz.disabled"; | 2081 const char kRLZDisabled[] = "rlz.disabled"; |
2082 #endif | 2082 #endif |
2083 | 2083 |
2084 #if defined(ENABLE_APP_LIST) | 2084 #if BUILDFLAG(ENABLE_APP_LIST) |
2085 // The directory in user data dir that contains the profile to be used with the | 2085 // The directory in user data dir that contains the profile to be used with the |
2086 // app launcher. | 2086 // app launcher. |
2087 const char kAppListProfile[] = "app_list.profile"; | 2087 const char kAppListProfile[] = "app_list.profile"; |
2088 | 2088 |
2089 // The number of times the app launcher was launched since last ping and | 2089 // The number of times the app launcher was launched since last ping and |
2090 // the time of the last ping. | 2090 // the time of the last ping. |
2091 const char kAppListLaunchCount[] = "app_list.launch_count"; | 2091 const char kAppListLaunchCount[] = "app_list.launch_count"; |
2092 const char kLastAppListLaunchPing[] = "app_list.last_launch_ping"; | 2092 const char kLastAppListLaunchPing[] = "app_list.last_launch_ping"; |
2093 | 2093 |
2094 // The number of times the an app was launched from the app launcher since last | 2094 // The number of times the an app was launched from the app launcher since last |
(...skipping 23 matching lines...) Expand all Loading... |
2118 | 2118 |
2119 // A dictionary that tracks the Drive app to Chrome app mapping. The key is | 2119 // A dictionary that tracks the Drive app to Chrome app mapping. The key is |
2120 // a Drive app id and the value is the corresponding Chrome app id. The pref | 2120 // a Drive app id and the value is the corresponding Chrome app id. The pref |
2121 // is unsynable and used to track local mappings only. | 2121 // is unsynable and used to track local mappings only. |
2122 const char kAppLauncherDriveAppMapping[] = | 2122 const char kAppLauncherDriveAppMapping[] = |
2123 "apps.app_launcher.drive_app_mapping"; | 2123 "apps.app_launcher.drive_app_mapping"; |
2124 | 2124 |
2125 // A list of Drive app ids that tracks the uninstallable Drive apps. | 2125 // A list of Drive app ids that tracks the uninstallable Drive apps. |
2126 const char kAppLauncherUninstalledDriveApps[] = | 2126 const char kAppLauncherUninstalledDriveApps[] = |
2127 "apps.app_launcher.uninstalled_drive_apps"; | 2127 "apps.app_launcher.uninstalled_drive_apps"; |
2128 #endif // defined(ENABLE_APP_LIST) | 2128 #endif // BUILDFLAG(ENABLE_APP_LIST) |
2129 | 2129 |
2130 #if defined(OS_WIN) | 2130 #if defined(OS_WIN) |
2131 // If set, the user requested to launch the app with this extension id while | 2131 // If set, the user requested to launch the app with this extension id while |
2132 // in Metro mode, and then relaunched to Desktop mode to start it. | 2132 // in Metro mode, and then relaunched to Desktop mode to start it. |
2133 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart"; | 2133 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart"; |
2134 | 2134 |
2135 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers | 2135 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers |
2136 // launch of the specified app when restarting Chrome in desktop mode. | 2136 // launch of the specified app when restarting Chrome in desktop mode. |
2137 const char kAppLaunchForMetroRestartProfile[] = | 2137 const char kAppLaunchForMetroRestartProfile[] = |
2138 "apps.app_launch_for_metro_restart_profile"; | 2138 "apps.app_launch_for_metro_restart_profile"; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2277 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; | 2277 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; |
2278 | 2278 |
2279 // A list of origin trial features to disable by policy. | 2279 // A list of origin trial features to disable by policy. |
2280 const char kOriginTrialDisabledFeatures[] = "origin_trials.disabled_features"; | 2280 const char kOriginTrialDisabledFeatures[] = "origin_trials.disabled_features"; |
2281 | 2281 |
2282 // Policy that indicates the state of updates for the binary components. | 2282 // Policy that indicates the state of updates for the binary components. |
2283 const char kComponentUpdatesEnabled[] = | 2283 const char kComponentUpdatesEnabled[] = |
2284 "component_updates.component_updates_enabled"; | 2284 "component_updates.component_updates_enabled"; |
2285 | 2285 |
2286 } // namespace prefs | 2286 } // namespace prefs |
OLD | NEW |