OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/browser/prefs/browser_prefs.h" | 5 #include "chrome/browser/prefs/browser_prefs.h" |
6 | 6 |
7 #include "apps/prefs.h" | 7 #include "apps/prefs.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/prefs/pref_registry_simple.h" | 9 #include "base/prefs/pref_registry_simple.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" | 84 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
85 #include "chrome/browser/ui/startup/autolaunch_prompt.h" | 85 #include "chrome/browser/ui/startup/autolaunch_prompt.h" |
86 #include "chrome/browser/ui/startup/default_browser_prompt.h" | 86 #include "chrome/browser/ui/startup/default_browser_prompt.h" |
87 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" | 87 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" |
88 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 88 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
89 #include "chrome/browser/ui/webui/flags_ui.h" | 89 #include "chrome/browser/ui/webui/flags_ui.h" |
90 #include "chrome/browser/ui/webui/instant_ui.h" | 90 #include "chrome/browser/ui/webui/instant_ui.h" |
91 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 91 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
92 #include "chrome/browser/ui/webui/plugins_ui.h" | 92 #include "chrome/browser/ui/webui/plugins_ui.h" |
93 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" | 93 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" |
94 #include "chrome/browser/ui/window_snapshot/window_snapshot.h" | |
95 #include "chrome/browser/upgrade_detector.h" | 94 #include "chrome/browser/upgrade_detector.h" |
96 #include "chrome/browser/web_resource/promo_resource_service.h" | 95 #include "chrome/browser/web_resource/promo_resource_service.h" |
97 #include "chrome/common/metrics/caching_permuted_entropy_provider.h" | 96 #include "chrome/common/metrics/caching_permuted_entropy_provider.h" |
98 #include "chrome/common/pref_names.h" | 97 #include "chrome/common/pref_names.h" |
99 #include "components/autofill/core/browser/autofill_manager.h" | 98 #include "components/autofill/core/browser/autofill_manager.h" |
100 #include "components/user_prefs/pref_registry_syncable.h" | 99 #include "components/user_prefs/pref_registry_syncable.h" |
101 #include "content/public/browser/render_process_host.h" | 100 #include "content/public/browser/render_process_host.h" |
102 | 101 |
103 #if defined(ENABLE_AUTOFILL_DIALOG) | 102 #if defined(ENABLE_AUTOFILL_DIALOG) |
104 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 103 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 } | 469 } |
471 | 470 |
472 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 471 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
473 RegisterProfilePrefs(registry); | 472 RegisterProfilePrefs(registry); |
474 | 473 |
475 #if defined(OS_CHROMEOS) | 474 #if defined(OS_CHROMEOS) |
476 chromeos::PowerPrefs::RegisterUserProfilePrefs(registry); | 475 chromeos::PowerPrefs::RegisterUserProfilePrefs(registry); |
477 #endif | 476 #endif |
478 } | 477 } |
479 | 478 |
| 479 void RegisterScreenshotPrefs(PrefRegistrySimple* registry) { |
| 480 registry->RegisterBooleanPref(prefs::kDisableScreenshots, false); |
| 481 } |
| 482 |
480 #if defined(OS_CHROMEOS) | 483 #if defined(OS_CHROMEOS) |
481 void RegisterLoginProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 484 void RegisterLoginProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
482 RegisterProfilePrefs(registry); | 485 RegisterProfilePrefs(registry); |
483 | 486 |
484 chromeos::PowerPrefs::RegisterLoginProfilePrefs(registry); | 487 chromeos::PowerPrefs::RegisterLoginProfilePrefs(registry); |
485 } | 488 } |
486 #endif | 489 #endif |
487 | 490 |
488 void MigrateUserPrefs(Profile* profile) { | 491 void MigrateUserPrefs(Profile* profile) { |
489 PrefService* prefs = profile->GetPrefs(); | 492 PrefService* prefs = profile->GetPrefs(); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 567 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
565 current_version); | 568 current_version); |
566 } | 569 } |
567 | 570 |
568 #if defined(OS_CHROMEOS) | 571 #if defined(OS_CHROMEOS) |
569 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); | 572 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); |
570 #endif | 573 #endif |
571 } | 574 } |
572 | 575 |
573 } // namespace chrome | 576 } // namespace chrome |
OLD | NEW |