| 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" |
| (...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1985 const char kResolveDeviceTimezoneByGeolocation[] = | 1985 const char kResolveDeviceTimezoneByGeolocation[] = |
| 1986 "settings.resolve_device_timezone_by_geolocation"; | 1986 "settings.resolve_device_timezone_by_geolocation"; |
| 1987 | 1987 |
| 1988 // This is policy-controlled preference. | 1988 // This is policy-controlled preference. |
| 1989 // It has values defined in policy enum | 1989 // It has values defined in policy enum |
| 1990 // SystemTimezoneAutomaticDetectionProto_AutomaticTimezoneDetectionType; | 1990 // SystemTimezoneAutomaticDetectionProto_AutomaticTimezoneDetectionType; |
| 1991 const char kSystemTimezoneAutomaticDetectionPolicy[] = | 1991 const char kSystemTimezoneAutomaticDetectionPolicy[] = |
| 1992 "settings.resolve_device_timezone_by_geolocation_policy"; | 1992 "settings.resolve_device_timezone_by_geolocation_policy"; |
| 1993 #endif // defined(OS_CHROMEOS) | 1993 #endif // defined(OS_CHROMEOS) |
| 1994 | 1994 |
| 1995 #if defined(ENABLE_MEDIA_ROUTER) | |
| 1996 // Pref name for the policy controlling whether to enable Media Router. | 1995 // Pref name for the policy controlling whether to enable Media Router. |
| 1997 const char kEnableMediaRouter[] = "media_router.enable_media_router"; | 1996 const char kEnableMediaRouter[] = "media_router.enable_media_router"; |
| 1998 #if !defined(OS_ANDROID) | 1997 #if !defined(OS_ANDROID) |
| 1999 // Pref name for the policy controlling whether to force the Cast icon to be | 1998 // Pref name for the policy controlling whether to force the Cast icon to be |
| 2000 // shown in the toolbar/overflow menu. | 1999 // shown in the toolbar/overflow menu. |
| 2001 const char kShowCastIconInToolbar[] = "media_router.show_cast_icon_in_toolbar"; | 2000 const char kShowCastIconInToolbar[] = "media_router.show_cast_icon_in_toolbar"; |
| 2002 #endif // !defined(OS_ANDROID) | 2001 #endif // !defined(OS_ANDROID) |
| 2003 #endif // defined(ENABLE_MEDIA_ROUTER) | |
| 2004 | 2002 |
| 2005 // *************** SERVICE PREFS *************** | 2003 // *************** SERVICE PREFS *************** |
| 2006 // These are attached to the service process. | 2004 // These are attached to the service process. |
| 2007 | 2005 |
| 2008 const char kCloudPrintRoot[] = "cloud_print"; | 2006 const char kCloudPrintRoot[] = "cloud_print"; |
| 2009 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled"; | 2007 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled"; |
| 2010 // The unique id for this instance of the cloud print proxy. | 2008 // The unique id for this instance of the cloud print proxy. |
| 2011 const char kCloudPrintProxyId[] = "cloud_print.proxy_id"; | 2009 const char kCloudPrintProxyId[] = "cloud_print.proxy_id"; |
| 2012 // The GAIA auth token for Cloud Print | 2010 // The GAIA auth token for Cloud Print |
| 2013 const char kCloudPrintAuthToken[] = "cloud_print.auth_token"; | 2011 const char kCloudPrintAuthToken[] = "cloud_print.auth_token"; |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2339 #if defined(OS_ANDROID) | 2337 #if defined(OS_ANDROID) |
| 2340 // Whether the update menu item was clicked. Used to facilitate logging whether | 2338 // Whether the update menu item was clicked. Used to facilitate logging whether |
| 2341 // Chrome was updated after the menu item is clicked. | 2339 // Chrome was updated after the menu item is clicked. |
| 2342 const char kClickedUpdateMenuItem[] = "omaha.clicked_update_menu_item"; | 2340 const char kClickedUpdateMenuItem[] = "omaha.clicked_update_menu_item"; |
| 2343 // The latest version of Chrome available when the user clicked on the update | 2341 // The latest version of Chrome available when the user clicked on the update |
| 2344 // menu item. | 2342 // menu item. |
| 2345 const char kLatestVersionWhenClickedUpdateMenuItem[] = | 2343 const char kLatestVersionWhenClickedUpdateMenuItem[] = |
| 2346 "omaha.latest_version_when_clicked_upate_menu_item"; | 2344 "omaha.latest_version_when_clicked_upate_menu_item"; |
| 2347 #endif | 2345 #endif |
| 2348 | 2346 |
| 2349 #if defined(ENABLE_MEDIA_ROUTER) | |
| 2350 // Whether or not the user has explicitly set the cloud services preference | 2347 // Whether or not the user has explicitly set the cloud services preference |
| 2351 // through the first run flow. | 2348 // through the first run flow. |
| 2352 const char kMediaRouterCloudServicesPrefSet[] = | 2349 const char kMediaRouterCloudServicesPrefSet[] = |
| 2353 "media_router.cloudservices.prefset"; | 2350 "media_router.cloudservices.prefset"; |
| 2354 // Whether or not the user has enabled cloud services with Media Router. | 2351 // Whether or not the user has enabled cloud services with Media Router. |
| 2355 const char kMediaRouterEnableCloudServices[] = | 2352 const char kMediaRouterEnableCloudServices[] = |
| 2356 "media_router.cloudservices.enabled"; | 2353 "media_router.cloudservices.enabled"; |
| 2357 // Whether or not the Media Router first run flow has been acknowledged by the | 2354 // Whether or not the Media Router first run flow has been acknowledged by the |
| 2358 // user. | 2355 // user. |
| 2359 const char kMediaRouterFirstRunFlowAcknowledged[] = | 2356 const char kMediaRouterFirstRunFlowAcknowledged[] = |
| 2360 "media_router.firstrunflow.acknowledged"; | 2357 "media_router.firstrunflow.acknowledged"; |
| 2361 // A list of website origins on which the user has chosen to use tab mirroring. | 2358 // A list of website origins on which the user has chosen to use tab mirroring. |
| 2362 const char kMediaRouterTabMirroringSources[] = | 2359 const char kMediaRouterTabMirroringSources[] = |
| 2363 "media_router.tab_mirroring_sources"; | 2360 "media_router.tab_mirroring_sources"; |
| 2364 #endif | |
| 2365 | 2361 |
| 2366 // The base64-encoded representation of the public key to use to validate origin | 2362 // The base64-encoded representation of the public key to use to validate origin |
| 2367 // trial token signatures. | 2363 // trial token signatures. |
| 2368 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; | 2364 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; |
| 2369 | 2365 |
| 2370 // A list of origin trial features to disable by policy. | 2366 // A list of origin trial features to disable by policy. |
| 2371 const char kOriginTrialDisabledFeatures[] = "origin_trials.disabled_features"; | 2367 const char kOriginTrialDisabledFeatures[] = "origin_trials.disabled_features"; |
| 2372 | 2368 |
| 2373 // A list of origin trial tokens to disable by policy. | 2369 // A list of origin trial tokens to disable by policy. |
| 2374 const char kOriginTrialDisabledTokens[] = "origin_trials.disabled_tokens"; | 2370 const char kOriginTrialDisabledTokens[] = "origin_trials.disabled_tokens"; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2522 // settings. | 2518 // settings. |
| 2523 const char kSettingsResetPromptLastTriggeredForStartupUrls[] = | 2519 const char kSettingsResetPromptLastTriggeredForStartupUrls[] = |
| 2524 "settings_reset_prompt.last_triggered_for_startup_urls"; | 2520 "settings_reset_prompt.last_triggered_for_startup_urls"; |
| 2525 | 2521 |
| 2526 // Timestamp of the last time the settings reset prompt was shown during the | 2522 // Timestamp of the last time the settings reset prompt was shown during the |
| 2527 // current prompt wave asking the user if they want to restore their homepage. | 2523 // current prompt wave asking the user if they want to restore their homepage. |
| 2528 const char kSettingsResetPromptLastTriggeredForHomepage[] = | 2524 const char kSettingsResetPromptLastTriggeredForHomepage[] = |
| 2529 "settings_reset_prompt.last_triggered_for_homepage"; | 2525 "settings_reset_prompt.last_triggered_for_homepage"; |
| 2530 | 2526 |
| 2531 } // namespace prefs | 2527 } // namespace prefs |
| OLD | NEW |