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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 #if defined(ENABLE_PLUGINS) | 327 #if defined(ENABLE_PLUGINS) |
328 PluginFinder::RegisterPrefs(registry); | 328 PluginFinder::RegisterPrefs(registry); |
329 #endif | 329 #endif |
330 | 330 |
331 #if defined(ENABLE_PLUGIN_INSTALLATION) | 331 #if defined(ENABLE_PLUGIN_INSTALLATION) |
332 PluginsResourceService::RegisterPrefs(registry); | 332 PluginsResourceService::RegisterPrefs(registry); |
333 #endif | 333 #endif |
334 | 334 |
335 #if defined(ENABLE_TASK_MANAGER) | 335 #if defined(ENABLE_TASK_MANAGER) |
336 TaskManager::RegisterPrefs(registry); | 336 task_management::TaskManagerInterface::RegisterPrefs(registry); |
337 #endif // defined(ENABLE_TASK_MANAGER) | 337 #endif // defined(ENABLE_TASK_MANAGER) |
338 | 338 |
339 #if BUILDFLAG(ENABLE_BACKGROUND) | 339 #if BUILDFLAG(ENABLE_BACKGROUND) |
340 BackgroundModeManager::RegisterPrefs(registry); | 340 BackgroundModeManager::RegisterPrefs(registry); |
341 #endif | 341 #endif |
342 | 342 |
343 #if !defined(OS_ANDROID) | 343 #if !defined(OS_ANDROID) |
344 ChromeTracingDelegate::RegisterPrefs(registry); | 344 ChromeTracingDelegate::RegisterPrefs(registry); |
345 RegisterBrowserPrefs(registry); | 345 RegisterBrowserPrefs(registry); |
346 StartupBrowserCreator::RegisterLocalStatePrefs(registry); | 346 StartupBrowserCreator::RegisterLocalStatePrefs(registry); |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 metrics_service | 687 metrics_service |
688 ? base::Time::FromTimeT(metrics_service->GetInstallDate()) | 688 ? base::Time::FromTimeT(metrics_service->GetInstallDate()) |
689 : base::Time::Now(); | 689 : base::Time::Now(); |
690 profile_prefs->SetInt64(prefs::kDefaultBrowserLastDeclined, | 690 profile_prefs->SetInt64(prefs::kDefaultBrowserLastDeclined, |
691 install_time.ToInternalValue()); | 691 install_time.ToInternalValue()); |
692 } | 692 } |
693 profile_prefs->ClearPref(kCheckDefaultBrowser); | 693 profile_prefs->ClearPref(kCheckDefaultBrowser); |
694 } | 694 } |
695 | 695 |
696 } // namespace chrome | 696 } // namespace chrome |
OLD | NEW |