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/theme_provider.h" | 7 #include "app/theme_provider.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "chrome/browser/appcache/chrome_appcache_service.h" |
14 #include "chrome/browser/autofill/personal_data_manager.h" | 15 #include "chrome/browser/autofill/personal_data_manager.h" |
15 #include "chrome/browser/bookmarks/bookmark_model.h" | 16 #include "chrome/browser/bookmarks/bookmark_model.h" |
16 #include "chrome/browser/browser_list.h" | 17 #include "chrome/browser/browser_list.h" |
17 #include "chrome/browser/browser_prefs.h" | 18 #include "chrome/browser/browser_prefs.h" |
18 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/browser_theme_provider.h" | 20 #include "chrome/browser/browser_theme_provider.h" |
20 #include "chrome/browser/chrome_thread.h" | 21 #include "chrome/browser/chrome_thread.h" |
21 #include "chrome/browser/dom_ui/ntp_resource_cache.h" | 22 #include "chrome/browser/dom_ui/ntp_resource_cache.h" |
22 #include "chrome/browser/download/download_manager.h" | 23 #include "chrome/browser/download/download_manager.h" |
23 #include "chrome/browser/extensions/extension_devtools_manager.h" | 24 #include "chrome/browser/extensions/extension_devtools_manager.h" |
(...skipping 21 matching lines...) Expand all Loading... |
45 #include "chrome/browser/sessions/session_service.h" | 46 #include "chrome/browser/sessions/session_service.h" |
46 #include "chrome/browser/sessions/tab_restore_service.h" | 47 #include "chrome/browser/sessions/tab_restore_service.h" |
47 #include "chrome/browser/ssl/ssl_host_state.h" | 48 #include "chrome/browser/ssl/ssl_host_state.h" |
48 #include "chrome/browser/sync/profile_sync_service.h" | 49 #include "chrome/browser/sync/profile_sync_service.h" |
49 #include "chrome/browser/sync/profile_sync_factory_impl.h" | 50 #include "chrome/browser/sync/profile_sync_factory_impl.h" |
50 #include "chrome/browser/thumbnail_store.h" | 51 #include "chrome/browser/thumbnail_store.h" |
51 #include "chrome/browser/visitedlink_master.h" | 52 #include "chrome/browser/visitedlink_master.h" |
52 #include "chrome/browser/visitedlink_event_listener.h" | 53 #include "chrome/browser/visitedlink_event_listener.h" |
53 #include "chrome/browser/webdata/web_data_service.h" | 54 #include "chrome/browser/webdata/web_data_service.h" |
54 #include "chrome/browser/web_resource/web_resource_service.h" | 55 #include "chrome/browser/web_resource/web_resource_service.h" |
55 #include "chrome/common/appcache/chrome_appcache_service.h" | |
56 #include "chrome/common/chrome_constants.h" | 56 #include "chrome/common/chrome_constants.h" |
57 #include "chrome/common/chrome_paths.h" | 57 #include "chrome/common/chrome_paths.h" |
58 #include "chrome/common/chrome_switches.h" | 58 #include "chrome/common/chrome_switches.h" |
59 #include "chrome/common/extensions/extension_error_reporter.h" | 59 #include "chrome/common/extensions/extension_error_reporter.h" |
60 #include "chrome/common/notification_service.h" | 60 #include "chrome/common/notification_service.h" |
61 #include "chrome/common/pref_names.h" | 61 #include "chrome/common/pref_names.h" |
62 #include "chrome/common/render_messages.h" | 62 #include "chrome/common/render_messages.h" |
63 #include "grit/locale_settings.h" | 63 #include "grit/locale_settings.h" |
64 #include "net/base/transport_security_state.h" | 64 #include "net/base/transport_security_state.h" |
65 #include "webkit/database/database_tracker.h" | 65 #include "webkit/database/database_tracker.h" |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 } | 1311 } |
1312 | 1312 |
1313 void ProfileImpl::InitSyncService() { | 1313 void ProfileImpl::InitSyncService() { |
1314 profile_sync_factory_.reset( | 1314 profile_sync_factory_.reset( |
1315 new ProfileSyncFactoryImpl(this, | 1315 new ProfileSyncFactoryImpl(this, |
1316 CommandLine::ForCurrentProcess())); | 1316 CommandLine::ForCurrentProcess())); |
1317 sync_service_.reset( | 1317 sync_service_.reset( |
1318 profile_sync_factory_->CreateProfileSyncService()); | 1318 profile_sync_factory_->CreateProfileSyncService()); |
1319 sync_service_->Initialize(); | 1319 sync_service_->Initialize(); |
1320 } | 1320 } |
OLD | NEW |