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

Side by Side Diff: chrome/common/pref_names.cc

Issue 944433002: Revamp the MigrateBrowserPrefs and MigrateUserPrefs code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra removal Created 5 years, 10 months 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 unified diff | Download patch
« chrome/common/pref_names.h ('K') | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/basictypes.h" 7 #include "base/basictypes.h"
8 #include "chrome/common/pref_font_webkit_names.h" 8 #include "chrome/common/pref_font_webkit_names.h"
9 9
10 namespace prefs { 10 namespace prefs {
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // 2 - block all cookies 369 // 2 - block all cookies
370 const char kCookieBehavior[] = "security.cookie_behavior"; 370 const char kCookieBehavior[] = "security.cookie_behavior";
371 371
372 // Boolean which specifies whether we should ask the user if we should download 372 // Boolean which specifies whether we should ask the user if we should download
373 // a file (true) or just download it automatically. 373 // a file (true) or just download it automatically.
374 const char kPromptForDownload[] = "download.prompt_for_download"; 374 const char kPromptForDownload[] = "download.prompt_for_download";
375 375
376 // A boolean pref set to true if we're using Link Doctor error pages. 376 // A boolean pref set to true if we're using Link Doctor error pages.
377 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled"; 377 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
378 378
379 // OBSOLETE: new pref now stored with user prefs instead of profile, as
380 // kDnsPrefetchingStartupList.
381 const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList";
gab 2015/02/23 16:09:38 Also remove declaration in header for all prefs re
rkaplow 2015/02/23 23:27:53 Done.
382
383 // An adaptively identified list of domain names to be pre-fetched during the 379 // An adaptively identified list of domain names to be pre-fetched during the
384 // next startup, based on what was actually needed during this startup. 380 // next startup, based on what was actually needed during this startup.
385 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; 381 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
386 382
387 // OBSOLETE: new pref now stored with user prefs instead of profile, as
388 // kDnsPrefetchingHostReferralList.
389 const char kDnsHostReferralList[] = "HostReferralList";
390
391 // A list of host names used to fetch web pages, and their commonly used 383 // A list of host names used to fetch web pages, and their commonly used
392 // sub-resource hostnames (and expected latency benefits from pre-resolving, or 384 // sub-resource hostnames (and expected latency benefits from pre-resolving, or
393 // preconnecting to, such sub-resource hostnames). 385 // preconnecting to, such sub-resource hostnames).
394 // This list is adaptively grown and pruned. 386 // This list is adaptively grown and pruned.
395 const char kDnsPrefetchingHostReferralList[] = 387 const char kDnsPrefetchingHostReferralList[] =
396 "dns_prefetching.host_referral_list"; 388 "dns_prefetching.host_referral_list";
397 389
398 // Disables the SPDY protocol. 390 // Disables the SPDY protocol.
399 const char kDisableSpdy[] = "spdy.disabled"; 391 const char kDisableSpdy[] = "spdy.disabled";
400 392
(...skipping 13 matching lines...) Expand all
414 // Last time that a check for cloud policy management was done. This time is 406 // Last time that a check for cloud policy management was done. This time is
415 // recorded on Android so that retries aren't attempted on every startup. 407 // recorded on Android so that retries aren't attempted on every startup.
416 // Instead the cloud policy registration is retried at least 1 or 3 days later. 408 // Instead the cloud policy registration is retried at least 1 or 3 days later.
417 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time"; 409 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time";
418 #endif 410 #endif
419 411
420 // Prefix URL for the experimental Instant ZeroSuggest provider. 412 // Prefix URL for the experimental Instant ZeroSuggest provider.
421 const char kInstantUIZeroSuggestUrlPrefix[] = 413 const char kInstantUIZeroSuggestUrlPrefix[] =
422 "instant_ui.zero_suggest_url_prefix"; 414 "instant_ui.zero_suggest_url_prefix";
423 415
424 // Used to migrate preferences from local state to user preferences to
425 // enable multiple profiles.
426 // BITMASK with possible values (see browser_prefs.cc for enum):
427 // 0: No preferences migrated.
428 // 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
429 // 2: Browser window preferences migrated: kDevToolsSplitLocation and
430 // kBrowserWindowPlacement
431 const char kMultipleProfilePrefMigration[] =
432 "local_state.multiple_profile_prefs_version";
433
434 // A boolean pref set to true if prediction of network actions is allowed. 416 // A boolean pref set to true if prediction of network actions is allowed.
435 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering 417 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
436 // of web pages, and resource prefetching. 418 // of web pages, and resource prefetching.
437 // NOTE: The "dns_prefetching.enabled" value is used so that historical user 419 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
438 // preferences are not lost. 420 // preferences are not lost.
439 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions 421 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions
440 // is functioning as per crbug.com/334602. 422 // is functioning as per crbug.com/334602.
441 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; 423 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
442 424
443 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows 425 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 const char kUninstallLastLaunchTimeSec[] = 1399 const char kUninstallLastLaunchTimeSec[] =
1418 "uninstall_metrics.last_launch_time_sec"; 1400 "uninstall_metrics.last_launch_time_sec";
1419 const char kUninstallLastObservedRunTimeSec[] = 1401 const char kUninstallLastObservedRunTimeSec[] =
1420 "uninstall_metrics.last_observed_running_time_sec"; 1402 "uninstall_metrics.last_observed_running_time_sec";
1421 1403
1422 // String containing the version of Chrome for which Chrome will not prompt the 1404 // String containing the version of Chrome for which Chrome will not prompt the
1423 // user about setting Chrome as the default browser. 1405 // user about setting Chrome as the default browser.
1424 const char kBrowserSuppressDefaultBrowserPrompt[] = 1406 const char kBrowserSuppressDefaultBrowserPrompt[] =
1425 "browser.suppress_default_browser_prompt_for_version"; 1407 "browser.suppress_default_browser_prompt_for_version";
1426 1408
1427 // A collection of position, size, and other data relating to the browser
1428 // window to restore on startup.
1429 const char kBrowserWindowPlacement[] = "browser.window_placement";
gab 2015/02/23 16:09:38 Do not remove this.
rkaplow 2015/02/23 23:27:53 Done.
1430
1431 // Browser window placement for popup windows. 1409 // Browser window placement for popup windows.
1432 const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup"; 1410 const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
1433 1411
1434 // A collection of position, size, and other data relating to the task 1412 // A collection of position, size, and other data relating to the task
1435 // manager window to restore on startup. 1413 // manager window to restore on startup.
1436 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement"; 1414 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1437 1415
1438 // A collection of position, size, and other data relating to app windows to 1416 // A collection of position, size, and other data relating to app windows to
1439 // restore on startup. 1417 // restore on startup.
1440 const char kAppWindowPlacement[] = "browser.app_window_placement"; 1418 const char kAppWindowPlacement[] = "browser.app_window_placement";
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
2288 // (name and a list of clients that registered the whitelist). 2266 // (name and a list of clients that registered the whitelist).
2289 const char kRegisteredSupervisedUserWhitelists[] = 2267 const char kRegisteredSupervisedUserWhitelists[] =
2290 "supervised_users.whitelists"; 2268 "supervised_users.whitelists";
2291 2269
2292 #if defined(ENABLE_EXTENSIONS) 2270 #if defined(ENABLE_EXTENSIONS)
2293 // Policy that indicates how to handle animated images. 2271 // Policy that indicates how to handle animated images.
2294 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; 2272 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2295 #endif 2273 #endif
2296 2274
2297 } // namespace prefs 2275 } // namespace prefs
OLDNEW
« chrome/common/pref_names.h ('K') | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698