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/service_process_control.h" | 5 #include "chrome/browser/service_process/service_process_control.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/metrics/histogram_base.h" | 11 #include "base/metrics/histogram_base.h" |
12 #include "base/metrics/histogram_delta_serialization.h" | 12 #include "base/metrics/histogram_delta_serialization.h" |
13 #include "base/process/kill.h" | 13 #include "base/process/kill.h" |
14 #include "base/process/launch.h" | 14 #include "base/process/launch.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 if (base::LaunchProcess(*cmd_line_, options, &process_handle_)) { | 397 if (base::LaunchProcess(*cmd_line_, options, &process_handle_)) { |
398 BrowserThread::PostTask( | 398 BrowserThread::PostTask( |
399 BrowserThread::IO, FROM_HERE, | 399 BrowserThread::IO, FROM_HERE, |
400 base::Bind(&Launcher::DoDetectLaunched, this)); | 400 base::Bind(&Launcher::DoDetectLaunched, this)); |
401 } else { | 401 } else { |
402 BrowserThread::PostTask( | 402 BrowserThread::PostTask( |
403 BrowserThread::UI, FROM_HERE, base::Bind(&Launcher::Notify, this)); | 403 BrowserThread::UI, FROM_HERE, base::Bind(&Launcher::Notify, this)); |
404 } | 404 } |
405 } | 405 } |
406 #endif // !OS_MACOSX | 406 #endif // !OS_MACOSX |
OLD | NEW |