| 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" |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 user_script_master_ = new UserScriptMaster( | 559 user_script_master_ = new UserScriptMaster( |
| 560 g_browser_process->file_thread()->message_loop(), | 560 g_browser_process->file_thread()->message_loop(), |
| 561 script_dir); | 561 script_dir); |
| 562 extensions_service_ = new ExtensionsService( | 562 extensions_service_ = new ExtensionsService( |
| 563 this, | 563 this, |
| 564 CommandLine::ForCurrentProcess(), | 564 CommandLine::ForCurrentProcess(), |
| 565 GetPrefs(), | 565 GetPrefs(), |
| 566 GetPath().AppendASCII(ExtensionsService::kInstallDirectoryName), | 566 GetPath().AppendASCII(ExtensionsService::kInstallDirectoryName), |
| 567 MessageLoop::current(), | 567 MessageLoop::current(), |
| 568 g_browser_process->file_thread()->message_loop(), | 568 g_browser_process->file_thread()->message_loop(), |
| 569 true); | 569 false); |
| 570 | 570 |
| 571 extensions_service_->Init(); | 571 extensions_service_->Init(); |
| 572 } | 572 } |
| 573 | 573 |
| 574 void ProfileImpl::InitWebResources() { | 574 void ProfileImpl::InitWebResources() { |
| 575 web_resource_service_ = new WebResourceService( | 575 web_resource_service_ = new WebResourceService( |
| 576 this, | 576 this, |
| 577 g_browser_process->file_thread()->message_loop()); | 577 g_browser_process->file_thread()->message_loop()); |
| 578 | 578 |
| 579 web_resource_service_->StartAfterDelay(); | 579 web_resource_service_->StartAfterDelay(); |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 | 1154 |
| 1155 void ProfileImpl::StopCreateSessionServiceTimer() { | 1155 void ProfileImpl::StopCreateSessionServiceTimer() { |
| 1156 create_session_service_timer_.Stop(); | 1156 create_session_service_timer_.Stop(); |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 #ifdef CHROME_PERSONALIZATION | 1159 #ifdef CHROME_PERSONALIZATION |
| 1160 ProfilePersonalization* ProfileImpl::GetProfilePersonalization() { | 1160 ProfilePersonalization* ProfileImpl::GetProfilePersonalization() { |
| 1161 return personalization_.get(); | 1161 return personalization_.get(); |
| 1162 } | 1162 } |
| 1163 #endif | 1163 #endif |
| OLD | NEW |