Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Side by Side Diff: chrome/browser/component_updater/recovery_component_installer.cc

Issue 9580037: Convert uses of int ms to TimeDelta in component updater. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/component_updater/npapi_flash_component_installer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/npapi_flash_component_installer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698