| 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/browser_process_impl.h" | 5 #include "chrome/browser/browser_process_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/thread.h" | 9 #include "base/thread.h" |
| 10 #include "base/waitable_event.h" | 10 #include "base/waitable_event.h" |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 DCHECK(!created_profile_manager_ && profile_manager_.get() == NULL); | 332 DCHECK(!created_profile_manager_ && profile_manager_.get() == NULL); |
| 333 created_profile_manager_ = true; | 333 created_profile_manager_ = true; |
| 334 | 334 |
| 335 profile_manager_.reset(new ProfileManager()); | 335 profile_manager_.reset(new ProfileManager()); |
| 336 } | 336 } |
| 337 | 337 |
| 338 void BrowserProcessImpl::CreateLocalState() { | 338 void BrowserProcessImpl::CreateLocalState() { |
| 339 DCHECK(!created_local_state_ && local_state_.get() == NULL); | 339 DCHECK(!created_local_state_ && local_state_.get() == NULL); |
| 340 created_local_state_ = true; | 340 created_local_state_ = true; |
| 341 | 341 |
| 342 std::wstring local_state_path; | 342 FilePath local_state_path; |
| 343 PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path); | 343 PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path); |
| 344 local_state_.reset(new PrefService(local_state_path)); | 344 local_state_.reset(new PrefService(local_state_path)); |
| 345 } | 345 } |
| 346 | 346 |
| 347 void BrowserProcessImpl::InitBrokerServices( | 347 void BrowserProcessImpl::InitBrokerServices( |
| 348 sandbox::BrokerServices* broker_services) { | 348 sandbox::BrokerServices* broker_services) { |
| 349 DCHECK(!initialized_broker_services_ && broker_services_ == NULL); | 349 DCHECK(!initialized_broker_services_ && broker_services_ == NULL); |
| 350 broker_services->Init(); | 350 broker_services->Init(); |
| 351 initialized_broker_services_ = true; | 351 initialized_broker_services_ = true; |
| 352 broker_services_ = broker_services; | 352 broker_services_ = broker_services; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 375 // TODO(port): remove this completely, it has no business being here. | 375 // TODO(port): remove this completely, it has no business being here. |
| 376 #endif | 376 #endif |
| 377 } | 377 } |
| 378 | 378 |
| 379 void BrowserProcessImpl::CreateGoogleURLTracker() { | 379 void BrowserProcessImpl::CreateGoogleURLTracker() { |
| 380 DCHECK(google_url_tracker_.get() == NULL); | 380 DCHECK(google_url_tracker_.get() == NULL); |
| 381 scoped_ptr<GoogleURLTracker> google_url_tracker(new GoogleURLTracker); | 381 scoped_ptr<GoogleURLTracker> google_url_tracker(new GoogleURLTracker); |
| 382 google_url_tracker_.swap(google_url_tracker); | 382 google_url_tracker_.swap(google_url_tracker); |
| 383 } | 383 } |
| 384 | 384 |
| OLD | NEW |