| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
| 10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 #endif | 151 #endif |
| 152 | 152 |
| 153 #if defined(OS_CHROMEOS) | 153 #if defined(OS_CHROMEOS) |
| 154 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 154 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 155 #include "chrome/browser/chromeos/arc/arc_auth_service.h" | 155 #include "chrome/browser/chromeos/arc/arc_auth_service.h" |
| 156 #include "chrome/browser/chromeos/customization/customization_document.h" | 156 #include "chrome/browser/chromeos/customization/customization_document.h" |
| 157 #include "chrome/browser/chromeos/display/display_preferences.h" | 157 #include "chrome/browser/chromeos/display/display_preferences.h" |
| 158 #include "chrome/browser/chromeos/extensions/echo_private_api.h" | 158 #include "chrome/browser/chromeos/extensions/echo_private_api.h" |
| 159 #include "chrome/browser/chromeos/file_system_provider/registry.h" | 159 #include "chrome/browser/chromeos/file_system_provider/registry.h" |
| 160 #include "chrome/browser/chromeos/first_run/first_run.h" | 160 #include "chrome/browser/chromeos/first_run/first_run.h" |
| 161 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h" |
| 161 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" | 162 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" |
| 162 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 163 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
| 163 #include "chrome/browser/chromeos/login/startup_utils.h" | 164 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 164 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager.h" | 165 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager.h" |
| 165 #include "chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h" | 166 #include "chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h" |
| 166 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" | 167 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" |
| 167 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h" | 168 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h" |
| 168 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 169 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
| 169 #include "chrome/browser/chromeos/net/proxy_config_handler.h" | 170 #include "chrome/browser/chromeos/net/proxy_config_handler.h" |
| 170 #include "chrome/browser/chromeos/platform_keys/key_permissions.h" | 171 #include "chrome/browser/chromeos/platform_keys/key_permissions.h" |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 525 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
| 525 default_apps::RegisterProfilePrefs(registry); | 526 default_apps::RegisterProfilePrefs(registry); |
| 526 #endif | 527 #endif |
| 527 | 528 |
| 528 #if defined(OS_CHROMEOS) | 529 #if defined(OS_CHROMEOS) |
| 529 arc::ArcAuthService::RegisterProfilePrefs(registry); | 530 arc::ArcAuthService::RegisterProfilePrefs(registry); |
| 530 chromeos::first_run::RegisterProfilePrefs(registry); | 531 chromeos::first_run::RegisterProfilePrefs(registry); |
| 531 chromeos::file_system_provider::RegisterProfilePrefs(registry); | 532 chromeos::file_system_provider::RegisterProfilePrefs(registry); |
| 532 chromeos::KeyPermissions::RegisterProfilePrefs(registry); | 533 chromeos::KeyPermissions::RegisterProfilePrefs(registry); |
| 533 chromeos::MultiProfileUserController::RegisterProfilePrefs(registry); | 534 chromeos::MultiProfileUserController::RegisterProfilePrefs(registry); |
| 535 chromeos::PinStorage::RegisterProfilePrefs(registry); |
| 534 chromeos::Preferences::RegisterProfilePrefs(registry); | 536 chromeos::Preferences::RegisterProfilePrefs(registry); |
| 535 chromeos::proxy_config::RegisterProfilePrefs(registry); | 537 chromeos::proxy_config::RegisterProfilePrefs(registry); |
| 536 chromeos::SAMLOfflineSigninLimiter::RegisterProfilePrefs(registry); | 538 chromeos::SAMLOfflineSigninLimiter::RegisterProfilePrefs(registry); |
| 537 chromeos::ServicesCustomizationDocument::RegisterProfilePrefs(registry); | 539 chromeos::ServicesCustomizationDocument::RegisterProfilePrefs(registry); |
| 538 chromeos::UserImageSyncObserver::RegisterProfilePrefs(registry); | 540 chromeos::UserImageSyncObserver::RegisterProfilePrefs(registry); |
| 539 extensions::EPKPChallengeUserKey::RegisterProfilePrefs(registry); | 541 extensions::EPKPChallengeUserKey::RegisterProfilePrefs(registry); |
| 540 flags_ui::PrefServiceFlagsStorage::RegisterProfilePrefs(registry); | 542 flags_ui::PrefServiceFlagsStorage::RegisterProfilePrefs(registry); |
| 541 #endif | 543 #endif |
| 542 | 544 |
| 543 #if defined(OS_CHROMEOS) && defined(ENABLE_APP_LIST) | 545 #if defined(OS_CHROMEOS) && defined(ENABLE_APP_LIST) |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 metrics_service | 689 metrics_service |
| 688 ? base::Time::FromTimeT(metrics_service->GetInstallDate()) | 690 ? base::Time::FromTimeT(metrics_service->GetInstallDate()) |
| 689 : base::Time::Now(); | 691 : base::Time::Now(); |
| 690 profile_prefs->SetInt64(prefs::kDefaultBrowserLastDeclined, | 692 profile_prefs->SetInt64(prefs::kDefaultBrowserLastDeclined, |
| 691 install_time.ToInternalValue()); | 693 install_time.ToInternalValue()); |
| 692 } | 694 } |
| 693 profile_prefs->ClearPref(kCheckDefaultBrowser); | 695 profile_prefs->ClearPref(kCheckDefaultBrowser); |
| 694 } | 696 } |
| 695 | 697 |
| 696 } // namespace chrome | 698 } // namespace chrome |
| OLD | NEW |