Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1340)

Side by Side Diff: chrome/browser/browser_process_impl.cc

Issue 342068: Third patch in getting rid of caching MessageLoop pointers and always using C... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_shutdown.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "app/clipboard/clipboard.h" 7 #include "app/clipboard/clipboard.h"
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 profile_manager_.reset(new ProfileManager()); 391 profile_manager_.reset(new ProfileManager());
392 } 392 }
393 393
394 void BrowserProcessImpl::CreateLocalState() { 394 void BrowserProcessImpl::CreateLocalState() {
395 DCHECK(!created_local_state_ && local_state_.get() == NULL); 395 DCHECK(!created_local_state_ && local_state_.get() == NULL);
396 created_local_state_ = true; 396 created_local_state_ = true;
397 397
398 FilePath local_state_path; 398 FilePath local_state_path;
399 PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path); 399 PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path);
400 local_state_.reset(new PrefService(local_state_path, file_thread())); 400 local_state_.reset(new PrefService(local_state_path));
401 } 401 }
402 402
403 #if defined(OS_WIN) 403 #if defined(OS_WIN)
404 void BrowserProcessImpl::InitBrokerServices( 404 void BrowserProcessImpl::InitBrokerServices(
405 sandbox::BrokerServices* broker_services) { 405 sandbox::BrokerServices* broker_services) {
406 DCHECK(!initialized_broker_services_ && broker_services_ == NULL); 406 DCHECK(!initialized_broker_services_ && broker_services_ == NULL);
407 broker_services->Init(); 407 broker_services->Init();
408 initialized_broker_services_ = true; 408 initialized_broker_services_ = true;
409 broker_services_ = broker_services; 409 broker_services_ = broker_services;
410 } 410 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 DCHECK(file_thread_->message_loop() == MessageLoop::current()); 498 DCHECK(file_thread_->message_loop() == MessageLoop::current());
499 bool result = false; 499 bool result = false;
500 500
501 FilePath inspector_dir; 501 FilePath inspector_dir;
502 if (PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir)) { 502 if (PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir)) {
503 result = file_util::PathExists(inspector_dir); 503 result = file_util::PathExists(inspector_dir);
504 } 504 }
505 505
506 have_inspector_files_ = result; 506 have_inspector_files_ = result;
507 } 507 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_shutdown.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698