| 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/component_updater/recovery_component_installer.h" | 5 #include "chrome/browser/component_updater/recovery_component_installer.h" |
| 6 | 6 |
| 7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 base::Bind(&RecoveryUpdateVersionHelper, version, prefs_)); | 127 base::Bind(&RecoveryUpdateVersionHelper, version, prefs_)); |
| 128 } | 128 } |
| 129 return base::LaunchProcess(cmdline, base::LaunchOptions(), NULL); | 129 return base::LaunchProcess(cmdline, base::LaunchOptions(), NULL); |
| 130 } | 130 } |
| 131 | 131 |
| 132 void RegisterRecoveryComponent(ComponentUpdateService* cus, | 132 void RegisterRecoveryComponent(ComponentUpdateService* cus, |
| 133 PrefService* prefs) { | 133 PrefService* prefs) { |
| 134 #if !defined(OS_CHROMEOS) | 134 #if !defined(OS_CHROMEOS) |
| 135 // We delay execute the registration because we are not required in | 135 // We delay execute the registration because we are not required in |
| 136 // the critical path during browser startup. | 136 // the critical path during browser startup. |
| 137 BrowserThread::PostDelayedTask(BrowserThread::UI, FROM_HERE, | 137 BrowserThread::PostDelayedTask( |
| 138 base::Bind(&RecoveryRegisterHelper, cus, prefs), 6000); | 138 BrowserThread::UI, |
| 139 FROM_HERE, |
| 140 base::Bind(&RecoveryRegisterHelper, cus, prefs), |
| 141 base::TimeDelta::FromSeconds(6)); |
| 139 #endif | 142 #endif |
| 140 } | 143 } |
| OLD | NEW |