OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/profile.h" | 5 #include "chrome/browser/profile.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "app/theme_provider.h" | 8 #include "app/theme_provider.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/env_var.h" | 10 #include "base/env_var.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "chrome/browser/appcache/chrome_appcache_service.h" | 16 #include "chrome/browser/appcache/chrome_appcache_service.h" |
17 #include "chrome/browser/autocomplete/autocomplete_classifier.h" | 17 #include "chrome/browser/autocomplete/autocomplete_classifier.h" |
18 #include "chrome/browser/autofill/personal_data_manager.h" | 18 #include "chrome/browser/autofill/personal_data_manager.h" |
19 #include "chrome/browser/bookmarks/bookmark_model.h" | 19 #include "chrome/browser/bookmarks/bookmark_model.h" |
20 #include "chrome/browser/browser_list.h" | 20 #include "chrome/browser/browser_list.h" |
21 #include "chrome/browser/browser_prefs.h" | 21 #include "chrome/browser/browser_prefs.h" |
22 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/browser_theme_provider.h" | 23 #include "chrome/browser/browser_theme_provider.h" |
24 #include "chrome/browser/chrome_thread.h" | 24 #include "chrome/browser/chrome_thread.h" |
25 #include "chrome/browser/dom_ui/ntp_resource_cache.h" | 25 #include "chrome/browser/dom_ui/ntp_resource_cache.h" |
26 #include "chrome/browser/download/download_manager.h" | 26 #include "chrome/browser/download/download_manager.h" |
27 #include "chrome/browser/extensions/extension_devtools_manager.h" | 27 #include "chrome/browser/extensions/extension_devtools_manager.h" |
| 28 #include "chrome/browser/extensions/extension_error_reporter.h" |
28 #include "chrome/browser/extensions/extension_message_service.h" | 29 #include "chrome/browser/extensions/extension_message_service.h" |
29 #include "chrome/browser/extensions/extension_process_manager.h" | 30 #include "chrome/browser/extensions/extension_process_manager.h" |
30 #include "chrome/browser/extensions/extensions_service.h" | 31 #include "chrome/browser/extensions/extensions_service.h" |
31 #include "chrome/browser/extensions/user_script_master.h" | 32 #include "chrome/browser/extensions/user_script_master.h" |
32 #include "chrome/browser/favicon_service.h" | 33 #include "chrome/browser/favicon_service.h" |
33 #include "chrome/browser/find_bar_state.h" | 34 #include "chrome/browser/find_bar_state.h" |
34 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 35 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
35 #include "chrome/browser/spellcheck_host.h" | 36 #include "chrome/browser/spellcheck_host.h" |
36 #include "chrome/browser/transport_security_persister.h" | 37 #include "chrome/browser/transport_security_persister.h" |
37 #include "chrome/browser/history/history.h" | 38 #include "chrome/browser/history/history.h" |
(...skipping 20 matching lines...) Expand all Loading... |
58 #include "chrome/browser/tabs/pinned_tab_service.h" | 59 #include "chrome/browser/tabs/pinned_tab_service.h" |
59 #include "chrome/browser/thumbnail_store.h" | 60 #include "chrome/browser/thumbnail_store.h" |
60 #include "chrome/browser/user_style_sheet_watcher.h" | 61 #include "chrome/browser/user_style_sheet_watcher.h" |
61 #include "chrome/browser/visitedlink_master.h" | 62 #include "chrome/browser/visitedlink_master.h" |
62 #include "chrome/browser/visitedlink_event_listener.h" | 63 #include "chrome/browser/visitedlink_event_listener.h" |
63 #include "chrome/browser/webdata/web_data_service.h" | 64 #include "chrome/browser/webdata/web_data_service.h" |
64 #include "chrome/browser/web_resource/web_resource_service.h" | 65 #include "chrome/browser/web_resource/web_resource_service.h" |
65 #include "chrome/common/chrome_constants.h" | 66 #include "chrome/common/chrome_constants.h" |
66 #include "chrome/common/chrome_paths.h" | 67 #include "chrome/common/chrome_paths.h" |
67 #include "chrome/common/chrome_switches.h" | 68 #include "chrome/common/chrome_switches.h" |
68 #include "chrome/common/extensions/extension_error_reporter.h" | |
69 #include "chrome/common/notification_service.h" | 69 #include "chrome/common/notification_service.h" |
70 #include "chrome/common/pref_names.h" | 70 #include "chrome/common/pref_names.h" |
71 #include "chrome/common/render_messages.h" | 71 #include "chrome/common/render_messages.h" |
72 #include "grit/browser_resources.h" | 72 #include "grit/browser_resources.h" |
73 #include "grit/locale_settings.h" | 73 #include "grit/locale_settings.h" |
74 #include "net/base/transport_security_state.h" | 74 #include "net/base/transport_security_state.h" |
75 #include "webkit/database/database_tracker.h" | 75 #include "webkit/database/database_tracker.h" |
76 | 76 |
77 #if defined(TOOLKIT_USES_GTK) | 77 #if defined(TOOLKIT_USES_GTK) |
78 #include "chrome/browser/gtk/gtk_theme_provider.h" | 78 #include "chrome/browser/gtk/gtk_theme_provider.h" |
(...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 CommandLine::ForCurrentProcess())); | 1487 CommandLine::ForCurrentProcess())); |
1488 sync_service_.reset( | 1488 sync_service_.reset( |
1489 profile_sync_factory_->CreateProfileSyncService()); | 1489 profile_sync_factory_->CreateProfileSyncService()); |
1490 sync_service_->Initialize(); | 1490 sync_service_->Initialize(); |
1491 } | 1491 } |
1492 | 1492 |
1493 void ProfileImpl::InitCloudPrintProxyService() { | 1493 void ProfileImpl::InitCloudPrintProxyService() { |
1494 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); | 1494 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); |
1495 cloud_print_proxy_service_->Initialize(); | 1495 cloud_print_proxy_service_->Initialize(); |
1496 } | 1496 } |
1497 | |
OLD | NEW |