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/process/kill.h" | 16 #include "base/process/kill.h" |
17 #include "base/process/launch.h" | 17 #include "base/process/launch.h" |
18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
19 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
20 #include "base/thread_task_runner_handle.h" | |
21 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
22 #include "base/threading/thread_restrictions.h" | 21 #include "base/threading/thread_restrictions.h" |
| 22 #include "base/threading/thread_task_runner_handle.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/chrome_notification_types.h" | 25 #include "chrome/browser/chrome_notification_types.h" |
26 #include "chrome/browser/upgrade_detector.h" | 26 #include "chrome/browser/upgrade_detector.h" |
27 #include "chrome/common/service_messages.h" | 27 #include "chrome/common/service_messages.h" |
28 #include "chrome/common/service_process_util.h" | 28 #include "chrome/common/service_process_util.h" |
29 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
30 #include "content/public/browser/notification_service.h" | 30 #include "content/public/browser/notification_service.h" |
31 | 31 |
32 using content::BrowserThread; | 32 using content::BrowserThread; |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 if (process_.IsValid()) { | 384 if (process_.IsValid()) { |
385 BrowserThread::PostTask( | 385 BrowserThread::PostTask( |
386 BrowserThread::IO, FROM_HERE, | 386 BrowserThread::IO, FROM_HERE, |
387 base::Bind(&Launcher::DoDetectLaunched, this)); | 387 base::Bind(&Launcher::DoDetectLaunched, this)); |
388 } else { | 388 } else { |
389 BrowserThread::PostTask( | 389 BrowserThread::PostTask( |
390 BrowserThread::UI, FROM_HERE, base::Bind(&Launcher::Notify, this)); | 390 BrowserThread::UI, FROM_HERE, base::Bind(&Launcher::Notify, this)); |
391 } | 391 } |
392 } | 392 } |
393 #endif // !OS_MACOSX | 393 #endif // !OS_MACOSX |
OLD | NEW |