| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "chrome/browser/profiles/chrome_version_service.h" | 44 #include "chrome/browser/profiles/chrome_version_service.h" |
| 45 #include "chrome/browser/profiles/profile.h" | 45 #include "chrome/browser/profiles/profile.h" |
| 46 #include "chrome/browser/profiles/profile_impl.h" | 46 #include "chrome/browser/profiles/profile_impl.h" |
| 47 #include "chrome/browser/profiles/profile_info_cache.h" | 47 #include "chrome/browser/profiles/profile_info_cache.h" |
| 48 #include "chrome/browser/profiles/profiles_state.h" | 48 #include "chrome/browser/profiles/profiles_state.h" |
| 49 #include "chrome/browser/push_messaging/background_budget_service.h" | 49 #include "chrome/browser/push_messaging/background_budget_service.h" |
| 50 #include "chrome/browser/push_messaging/push_messaging_app_identifier.h" | 50 #include "chrome/browser/push_messaging/push_messaging_app_identifier.h" |
| 51 #include "chrome/browser/renderer_host/pepper/device_id_fetcher.h" | 51 #include "chrome/browser/renderer_host/pepper/device_id_fetcher.h" |
| 52 #include "chrome/browser/search/search.h" | 52 #include "chrome/browser/search/search.h" |
| 53 #include "chrome/browser/signin/signin_manager_factory.h" | 53 #include "chrome/browser/signin/signin_manager_factory.h" |
| 54 #include "chrome/browser/task_manager/task_manager.h" | 54 #include "chrome/browser/task_management/task_manager_interface.h" |
| 55 #include "chrome/browser/tracing/chrome_tracing_delegate.h" | 55 #include "chrome/browser/tracing/chrome_tracing_delegate.h" |
| 56 #include "chrome/browser/ui/app_list/app_list_prefs.h" | 56 #include "chrome/browser/ui/app_list/app_list_prefs.h" |
| 57 #include "chrome/browser/ui/app_list/app_list_service.h" | 57 #include "chrome/browser/ui/app_list/app_list_service.h" |
| 58 #include "chrome/browser/ui/browser_ui_prefs.h" | 58 #include "chrome/browser/ui/browser_ui_prefs.h" |
| 59 #include "chrome/browser/ui/navigation_correction_tab_observer.h" | 59 #include "chrome/browser/ui/navigation_correction_tab_observer.h" |
| 60 #include "chrome/browser/ui/network_profile_bubble.h" | 60 #include "chrome/browser/ui/network_profile_bubble.h" |
| 61 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 61 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
| 62 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" | 62 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
| 63 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" | 63 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" |
| 64 #include "chrome/browser/ui/webui/flags_ui.h" | 64 #include "chrome/browser/ui/webui/flags_ui.h" |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 | 331 |
| 332 #if defined(ENABLE_PLUGINS) | 332 #if defined(ENABLE_PLUGINS) |
| 333 PluginFinder::RegisterPrefs(registry); | 333 PluginFinder::RegisterPrefs(registry); |
| 334 #endif | 334 #endif |
| 335 | 335 |
| 336 #if defined(ENABLE_PLUGIN_INSTALLATION) | 336 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 337 PluginsResourceService::RegisterPrefs(registry); | 337 PluginsResourceService::RegisterPrefs(registry); |
| 338 #endif | 338 #endif |
| 339 | 339 |
| 340 #if defined(ENABLE_TASK_MANAGER) | 340 #if defined(ENABLE_TASK_MANAGER) |
| 341 TaskManager::RegisterPrefs(registry); | 341 task_management::TaskManagerInterface::RegisterPrefs(registry); |
| 342 #endif // defined(ENABLE_TASK_MANAGER) | 342 #endif // defined(ENABLE_TASK_MANAGER) |
| 343 | 343 |
| 344 #if BUILDFLAG(ENABLE_BACKGROUND) | 344 #if BUILDFLAG(ENABLE_BACKGROUND) |
| 345 BackgroundModeManager::RegisterPrefs(registry); | 345 BackgroundModeManager::RegisterPrefs(registry); |
| 346 #endif | 346 #endif |
| 347 | 347 |
| 348 #if !defined(OS_ANDROID) | 348 #if !defined(OS_ANDROID) |
| 349 ChromeTracingDelegate::RegisterPrefs(registry); | 349 ChromeTracingDelegate::RegisterPrefs(registry); |
| 350 RegisterBrowserPrefs(registry); | 350 RegisterBrowserPrefs(registry); |
| 351 StartupBrowserCreator::RegisterLocalStatePrefs(registry); | 351 StartupBrowserCreator::RegisterLocalStatePrefs(registry); |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 metrics_service | 693 metrics_service |
| 694 ? base::Time::FromTimeT(metrics_service->GetInstallDate()) | 694 ? base::Time::FromTimeT(metrics_service->GetInstallDate()) |
| 695 : base::Time::Now(); | 695 : base::Time::Now(); |
| 696 profile_prefs->SetInt64(prefs::kDefaultBrowserLastDeclined, | 696 profile_prefs->SetInt64(prefs::kDefaultBrowserLastDeclined, |
| 697 install_time.ToInternalValue()); | 697 install_time.ToInternalValue()); |
| 698 } | 698 } |
| 699 profile_prefs->ClearPref(kCheckDefaultBrowser); | 699 profile_prefs->ClearPref(kCheckDefaultBrowser); |
| 700 } | 700 } |
| 701 | 701 |
| 702 } // namespace chrome | 702 } // namespace chrome |
| OLD | NEW |