| 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/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/process_util.h" | 11 #include "base/process/launch.h" |
| 12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
| 13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/chrome_notification_types.h" | 16 #include "chrome/browser/chrome_notification_types.h" |
| 17 #include "chrome/browser/upgrade_detector.h" | 17 #include "chrome/browser/upgrade_detector.h" |
| 18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 19 #include "chrome/common/service_messages.h" | 19 #include "chrome/common/service_messages.h" |
| 20 #include "chrome/common/service_process_util.h" | 20 #include "chrome/common/service_process_util.h" |
| 21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 if (base::LaunchProcess(*cmd_line_, options, NULL)) { | 307 if (base::LaunchProcess(*cmd_line_, options, NULL)) { |
| 308 BrowserThread::PostTask( | 308 BrowserThread::PostTask( |
| 309 BrowserThread::IO, FROM_HERE, | 309 BrowserThread::IO, FROM_HERE, |
| 310 base::Bind(&Launcher::DoDetectLaunched, this)); | 310 base::Bind(&Launcher::DoDetectLaunched, this)); |
| 311 } else { | 311 } else { |
| 312 BrowserThread::PostTask( | 312 BrowserThread::PostTask( |
| 313 BrowserThread::UI, FROM_HERE, base::Bind(&Launcher::Notify, this)); | 313 BrowserThread::UI, FROM_HERE, base::Bind(&Launcher::Notify, this)); |
| 314 } | 314 } |
| 315 } | 315 } |
| 316 #endif // !OS_MACOSX | 316 #endif // !OS_MACOSX |
| OLD | NEW |