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

Unified Diff: chrome/browser/component_updater/component_updater_service.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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/component_updater/npapi_flash_component_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/component_updater_service.cc
diff --git a/chrome/browser/component_updater/component_updater_service.cc b/chrome/browser/component_updater/component_updater_service.cc
index 0c090cce9b9c7e6bc578ffd837395a09b899a334..9b112bc7f197bacce1cd84b1ba97403f5ff1dfac 100644
--- a/chrome/browser/component_updater/component_updater_service.cc
+++ b/chrome/browser/component_updater/component_updater_service.cc
@@ -703,12 +703,14 @@ void CrxUpdateService::OnURLFetchComplete(const content::URLFetcher* source,
content::NotificationService::NoDetails());
// Why unretained? See comment at top of file.
- BrowserThread::PostDelayedTask(BrowserThread::FILE, FROM_HERE,
+ BrowserThread::PostDelayedTask(
+ BrowserThread::FILE,
+ FROM_HERE,
base::Bind(&CrxUpdateService::Install,
base::Unretained(this),
context,
temp_crx_path),
- config_->StepDelay());
+ base::TimeDelta::FromMilliseconds(config_->StepDelay()));
}
}
@@ -726,10 +728,12 @@ void CrxUpdateService::Install(const CRXContext* context,
NOTREACHED() << crx_path.value();
}
// Why unretained? See comment at top of file.
- BrowserThread::PostDelayedTask(BrowserThread::UI, FROM_HERE,
+ BrowserThread::PostDelayedTask(
+ BrowserThread::UI,
+ FROM_HERE,
base::Bind(&CrxUpdateService::DoneInstalling, base::Unretained(this),
context->id, unpacker.error()),
- config_->StepDelay());
+ base::TimeDelta::FromMilliseconds(config_->StepDelay()));
delete context;
}
« no previous file with comments | « no previous file | chrome/browser/component_updater/npapi_flash_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698