OLD | NEW |
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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 local_state()->GetString(prefs::kApplicationLocale)); | 291 local_state()->GetString(prefs::kApplicationLocale)); |
292 } | 292 } |
293 return locale_; | 293 return locale_; |
294 } | 294 } |
295 | 295 |
296 void BrowserProcessImpl::CreateResourceDispatcherHost() { | 296 void BrowserProcessImpl::CreateResourceDispatcherHost() { |
297 DCHECK(!created_resource_dispatcher_host_ && | 297 DCHECK(!created_resource_dispatcher_host_ && |
298 resource_dispatcher_host_.get() == NULL); | 298 resource_dispatcher_host_.get() == NULL); |
299 created_resource_dispatcher_host_ = true; | 299 created_resource_dispatcher_host_ = true; |
300 | 300 |
301 resource_dispatcher_host_.reset( | 301 resource_dispatcher_host_.reset(new ResourceDispatcherHost()); |
302 new ResourceDispatcherHost(io_thread()->message_loop())); | |
303 resource_dispatcher_host_->Initialize(); | 302 resource_dispatcher_host_->Initialize(); |
304 } | 303 } |
305 | 304 |
306 void BrowserProcessImpl::CreateMetricsService() { | 305 void BrowserProcessImpl::CreateMetricsService() { |
307 DCHECK(!created_metrics_service_ && metrics_service_.get() == NULL); | 306 DCHECK(!created_metrics_service_ && metrics_service_.get() == NULL); |
308 created_metrics_service_ = true; | 307 created_metrics_service_ = true; |
309 | 308 |
310 metrics_service_.reset(new MetricsService); | 309 metrics_service_.reset(new MetricsService); |
311 } | 310 } |
312 | 311 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 DCHECK(file_thread_->message_loop() == MessageLoop::current()); | 497 DCHECK(file_thread_->message_loop() == MessageLoop::current()); |
499 bool result = false; | 498 bool result = false; |
500 | 499 |
501 FilePath inspector_dir; | 500 FilePath inspector_dir; |
502 if (PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir)) { | 501 if (PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir)) { |
503 result = file_util::PathExists(inspector_dir); | 502 result = file_util::PathExists(inspector_dir); |
504 } | 503 } |
505 | 504 |
506 have_inspector_files_ = result; | 505 have_inspector_files_ = result; |
507 } | 506 } |
OLD | NEW |