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

Unified Diff: chrome/browser/component_updater/component_updater_utils.cc

Issue 105853002: Implement a background downloader using BITS in Windows Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed error codes. Created 7 years 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
Index: chrome/browser/component_updater/component_updater_utils.cc
diff --git a/chrome/browser/component_updater/component_updater_utils.cc b/chrome/browser/component_updater/component_updater_utils.cc
index 628e13697bfb40abe86cb37e2d0898754963da2b..e86f72c8a998807080881fc2d0254850bad66545 100644
--- a/chrome/browser/component_updater/component_updater_utils.cc
+++ b/chrome/browser/component_updater/component_updater_utils.cc
@@ -102,5 +102,10 @@ int GetFetchError(const net::URLFetcher& fetcher) {
}
}
+
+bool IsHttpServerError(int status_code) {
+ return 500 <= status_code && status_code < 600;
+}
+
} // namespace component_updater
« no previous file with comments | « chrome/browser/component_updater/component_updater_utils.h ('k') | chrome/browser/component_updater/crx_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698