OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/service_process/service_process_control.h" | 5 #include "chrome/browser/service_process/service_process_control.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/metrics/histogram_base.h" | 14 #include "base/metrics/histogram_base.h" |
15 #include "base/metrics/histogram_delta_serialization.h" | 15 #include "base/metrics/histogram_delta_serialization.h" |
| 16 #include "base/metrics/histogram_macros.h" |
16 #include "base/process/kill.h" | 17 #include "base/process/kill.h" |
17 #include "base/process/launch.h" | 18 #include "base/process/launch.h" |
18 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
19 #include "base/stl_util.h" | 20 #include "base/stl_util.h" |
20 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
21 #include "base/threading/thread_restrictions.h" | 22 #include "base/threading/thread_restrictions.h" |
22 #include "base/threading/thread_task_runner_handle.h" | 23 #include "base/threading/thread_task_runner_handle.h" |
23 #include "build/build_config.h" | 24 #include "build/build_config.h" |
24 #include "chrome/browser/browser_process.h" | 25 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/chrome_notification_types.h" | 26 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 if (process_.IsValid()) { | 408 if (process_.IsValid()) { |
408 BrowserThread::PostTask( | 409 BrowserThread::PostTask( |
409 BrowserThread::IO, FROM_HERE, | 410 BrowserThread::IO, FROM_HERE, |
410 base::Bind(&Launcher::DoDetectLaunched, this)); | 411 base::Bind(&Launcher::DoDetectLaunched, this)); |
411 } else { | 412 } else { |
412 BrowserThread::PostTask( | 413 BrowserThread::PostTask( |
413 BrowserThread::UI, FROM_HERE, base::Bind(&Launcher::Notify, this)); | 414 BrowserThread::UI, FROM_HERE, base::Bind(&Launcher::Notify, this)); |
414 } | 415 } |
415 } | 416 } |
416 #endif // !OS_MACOSX | 417 #endif // !OS_MACOSX |
OLD | NEW |