| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "chrome/browser/bookmarks/bookmark_model.h" | 13 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 14 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/download/download_manager.h" | 16 #include "chrome/browser/download/download_manager.h" |
| 17 #include "chrome/browser/extensions/extensions_service.h" | 17 #include "chrome/browser/extensions/extensions_service.h" |
| 18 #include "chrome/browser/extensions/user_script_master.h" | 18 #include "chrome/browser/extensions/user_script_master.h" |
| 19 #include "chrome/browser/history/history.h" | 19 #include "chrome/browser/history/history.h" |
| 20 #include "chrome/browser/net/chrome_url_request_context.h" | 20 #include "chrome/browser/net/chrome_url_request_context.h" |
| 21 #include "chrome/browser/profile_manager.h" | 21 #include "chrome/browser/profile_manager.h" |
| 22 #include "chrome/browser/renderer_host/render_process_host.h" | 22 #include "chrome/browser/renderer_host/render_process_host.h" |
| 23 #include "chrome/browser/search_engines/template_url_model.h" | 23 #include "chrome/browser/search_engines/template_url_model.h" |
| 24 #include "chrome/browser/ssl/ssl_host_state.h" | 24 #include "chrome/browser/ssl/ssl_host_state.h" |
| 25 #include "chrome/browser/sessions/session_service.h" | 25 #include "chrome/browser/sessions/session_service.h" |
| 26 #include "chrome/browser/sessions/tab_restore_service.h" | 26 #include "chrome/browser/sessions/tab_restore_service.h" |
| 27 #include "chrome/browser/spellchecker.h" |
| 27 #include "chrome/browser/visitedlink_master.h" | 28 #include "chrome/browser/visitedlink_master.h" |
| 28 #include "chrome/browser/webdata/web_data_service.h" | 29 #include "chrome/browser/webdata/web_data_service.h" |
| 29 #include "chrome/common/chrome_constants.h" | 30 #include "chrome/common/chrome_constants.h" |
| 30 #include "chrome/common/chrome_paths.h" | 31 #include "chrome/common/chrome_paths.h" |
| 31 #include "chrome/common/chrome_switches.h" | 32 #include "chrome/common/chrome_switches.h" |
| 32 #include "chrome/common/notification_service.h" | 33 #include "chrome/common/notification_service.h" |
| 33 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
| 34 #include "chrome/common/render_messages.h" | 35 #include "chrome/common/render_messages.h" |
| 35 #include "grit/locale_settings.h" | 36 #include "grit/locale_settings.h" |
| 36 | 37 |
| 37 #if defined(OS_POSIX) | 38 #if defined(OS_POSIX) |
| 38 // TODO(port): get rid of this include. It's used just to provide declarations | 39 // TODO(port): get rid of this include. It's used just to provide declarations |
| 39 // and stub definitions for classes we encouter during the porting effort. | 40 // and stub definitions for classes we encouter during the porting effort. |
| 40 #include "chrome/common/temp_scaffolding_stubs.h" | 41 #include "chrome/common/temp_scaffolding_stubs.h" |
| 41 #endif | 42 #endif |
| 42 | 43 |
| 43 // TODO(port): Get rid of this section and finish porting. | 44 // TODO(port): Get rid of this section and finish porting. |
| 44 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
| 45 #include "chrome/browser/search_engines/template_url_fetcher.h" | 46 #include "chrome/browser/search_engines/template_url_fetcher.h" |
| 46 #include "chrome/browser/spellchecker.h" | |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 using base::Time; | 49 using base::Time; |
| 50 using base::TimeDelta; | 50 using base::TimeDelta; |
| 51 | 51 |
| 52 // Delay, in milliseconds, before we explicitly create the SessionService. | 52 // Delay, in milliseconds, before we explicitly create the SessionService. |
| 53 static const int kCreateSessionServiceDelayMS = 500; | 53 static const int kCreateSessionServiceDelayMS = 500; |
| 54 | 54 |
| 55 // A pointer to the request context for the default profile. See comments on | 55 // A pointer to the request context for the default profile. See comments on |
| 56 // Profile::GetDefaultRequestContext. | 56 // Profile::GetDefaultRequestContext. |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 } | 829 } |
| 830 | 830 |
| 831 #ifdef CHROME_PERSONALIZATION | 831 #ifdef CHROME_PERSONALIZATION |
| 832 ProfilePersonalization* ProfileImpl::GetProfilePersonalization() { | 832 ProfilePersonalization* ProfileImpl::GetProfilePersonalization() { |
| 833 if (!personalization_.get()) | 833 if (!personalization_.get()) |
| 834 personalization_.reset( | 834 personalization_.reset( |
| 835 Personalization::CreateProfilePersonalization(this)); | 835 Personalization::CreateProfilePersonalization(this)); |
| 836 return personalization_.get(); | 836 return personalization_.get(); |
| 837 } | 837 } |
| 838 #endif | 838 #endif |
| OLD | NEW |