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

Unified Diff: libcurl_http_fetcher.cc

Issue 3183004: AU: Switch GLib's timeout sources from milliseconds to seconds. (Closed) Base URL: http://src.chromium.org/git/update_engine.git
Patch Set: Created 10 years, 4 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 | main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libcurl_http_fetcher.cc
diff --git a/libcurl_http_fetcher.cc b/libcurl_http_fetcher.cc
index 7bee4c176e322ded02b8b90a8d6298872cb52265..0707d999689b89429bd885b1d0503ae314a7908c 100644
--- a/libcurl_http_fetcher.cc
+++ b/libcurl_http_fetcher.cc
@@ -112,9 +112,9 @@ void LibcurlHttpFetcher::CurlPerformOnce() {
if (delegate_)
delegate_->TransferComplete(this, false); // success
} else {
- g_timeout_add(5 * 1000,
- &LibcurlHttpFetcher::StaticRetryTimeoutCallback,
- this);
+ g_timeout_add_seconds(5,
+ &LibcurlHttpFetcher::StaticRetryTimeoutCallback,
+ this);
}
return;
} else {
@@ -229,7 +229,7 @@ void LibcurlHttpFetcher::SetupMainloopSources() {
}
if (!timeout_source_) {
LOG(INFO) << "setting up timeout source:" << ms;
- timeout_source_ = g_timeout_source_new(1000);
+ timeout_source_ = g_timeout_source_new_seconds(1);
CHECK(timeout_source_);
g_source_set_callback(timeout_source_, StaticTimeoutCallback, this,
NULL);
« no previous file with comments | « no previous file | main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698