OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/profiles/profile_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "chrome/browser/extensions/extension_service.h" | 37 #include "chrome/browser/extensions/extension_service.h" |
38 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 38 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
39 #include "chrome/browser/extensions/user_script_master.h" | 39 #include "chrome/browser/extensions/user_script_master.h" |
40 #include "chrome/browser/favicon/favicon_service.h" | 40 #include "chrome/browser/favicon/favicon_service.h" |
41 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" | 41 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" |
42 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 42 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
43 #include "chrome/browser/history/history.h" | 43 #include "chrome/browser/history/history.h" |
44 #include "chrome/browser/history/shortcuts_backend.h" | 44 #include "chrome/browser/history/shortcuts_backend.h" |
45 #include "chrome/browser/history/top_sites.h" | 45 #include "chrome/browser/history/top_sites.h" |
46 #include "chrome/browser/instant/instant_controller.h" | 46 #include "chrome/browser/instant/instant_controller.h" |
| 47 #include "chrome/browser/intents/web_intents_registry.h" |
47 #include "chrome/browser/metrics/metrics_service.h" | 48 #include "chrome/browser/metrics/metrics_service.h" |
48 #include "chrome/browser/net/chrome_url_request_context.h" | 49 #include "chrome/browser/net/chrome_url_request_context.h" |
49 #include "chrome/browser/net/gaia/token_service.h" | 50 #include "chrome/browser/net/gaia/token_service.h" |
50 #include "chrome/browser/net/net_pref_observer.h" | 51 #include "chrome/browser/net/net_pref_observer.h" |
51 #include "chrome/browser/net/pref_proxy_config_service.h" | 52 #include "chrome/browser/net/pref_proxy_config_service.h" |
52 #include "chrome/browser/net/ssl_config_service_manager.h" | 53 #include "chrome/browser/net/ssl_config_service_manager.h" |
53 #include "chrome/browser/password_manager/password_store_default.h" | 54 #include "chrome/browser/password_manager/password_store_default.h" |
54 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 55 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
55 #include "chrome/browser/prefs/browser_prefs.h" | 56 #include "chrome/browser/prefs/browser_prefs.h" |
56 #include "chrome/browser/prefs/pref_value_store.h" | 57 #include "chrome/browser/prefs/pref_value_store.h" |
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 } | 1276 } |
1276 | 1277 |
1277 PersonalDataManager* ProfileImpl::GetPersonalDataManager() { | 1278 PersonalDataManager* ProfileImpl::GetPersonalDataManager() { |
1278 if (!personal_data_manager_.get()) { | 1279 if (!personal_data_manager_.get()) { |
1279 personal_data_manager_ = new PersonalDataManager(); | 1280 personal_data_manager_ = new PersonalDataManager(); |
1280 personal_data_manager_->Init(this); | 1281 personal_data_manager_->Init(this); |
1281 } | 1282 } |
1282 return personal_data_manager_.get(); | 1283 return personal_data_manager_.get(); |
1283 } | 1284 } |
1284 | 1285 |
| 1286 WebIntentsRegistry* ProfileImpl::GetWebIntentsRegistry() { |
| 1287 if (!web_intents_registry_.get()) { |
| 1288 web_intents_registry_ = new WebIntentsRegistry(); |
| 1289 web_intents_registry_->Initialize( |
| 1290 GetWebDataService(Profile::EXPLICIT_ACCESS)); |
| 1291 } |
| 1292 return web_intents_registry_.get(); |
| 1293 } |
| 1294 |
1285 fileapi::FileSystemContext* ProfileImpl::GetFileSystemContext() { | 1295 fileapi::FileSystemContext* ProfileImpl::GetFileSystemContext() { |
1286 CreateQuotaManagerAndClients(); | 1296 CreateQuotaManagerAndClients(); |
1287 return file_system_context_.get(); | 1297 return file_system_context_.get(); |
1288 } | 1298 } |
1289 | 1299 |
1290 quota::QuotaManager* ProfileImpl::GetQuotaManager() { | 1300 quota::QuotaManager* ProfileImpl::GetQuotaManager() { |
1291 CreateQuotaManagerAndClients(); | 1301 CreateQuotaManagerAndClients(); |
1292 return quota_manager_.get(); | 1302 return quota_manager_.get(); |
1293 } | 1303 } |
1294 | 1304 |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1744 new prerender::PrerenderManager( | 1754 new prerender::PrerenderManager( |
1745 this, g_browser_process->prerender_tracker())); | 1755 this, g_browser_process->prerender_tracker())); |
1746 #if defined(OS_CHROMEOS) | 1756 #if defined(OS_CHROMEOS) |
1747 prerender_manager_->AddCondition( | 1757 prerender_manager_->AddCondition( |
1748 new chromeos::PrerenderConditionNetwork( | 1758 new chromeos::PrerenderConditionNetwork( |
1749 chromeos::CrosLibrary::Get()->GetNetworkLibrary())); | 1759 chromeos::CrosLibrary::Get()->GetNetworkLibrary())); |
1750 #endif | 1760 #endif |
1751 } | 1761 } |
1752 return prerender_manager_.get(); | 1762 return prerender_manager_.get(); |
1753 } | 1763 } |
OLD | NEW |