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

Unified Diff: chrome/browser/extensions/webstore_data_fetcher.cc

Issue 386633003: kiosk: Retry failed app data fetch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor tweak to use URLFetcher default behavior rather than set 0 retry Created 6 years, 5 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
Index: chrome/browser/extensions/webstore_data_fetcher.cc
diff --git a/chrome/browser/extensions/webstore_data_fetcher.cc b/chrome/browser/extensions/webstore_data_fetcher.cc
index 89d523b8135dc93f80fecf59adce350bffb011d3..d71fe01776418d27c84442060747af9e008d0a66 100644
--- a/chrome/browser/extensions/webstore_data_fetcher.cc
+++ b/chrome/browser/extensions/webstore_data_fetcher.cc
@@ -29,7 +29,8 @@ WebstoreDataFetcher::WebstoreDataFetcher(
: delegate_(delegate),
request_context_(request_context),
referrer_url_(referrer_url),
- id_(webstore_item_id) {
+ id_(webstore_item_id),
+ max_auto_retries_(0) {
}
WebstoreDataFetcher::~WebstoreDataFetcher() {}
@@ -43,6 +44,11 @@ void WebstoreDataFetcher::Start() {
webstore_data_url_fetcher_->SetReferrer(referrer_url_.spec());
webstore_data_url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
net::LOAD_DISABLE_CACHE);
+ if (max_auto_retries_ > 0) {
+ webstore_data_url_fetcher_->SetMaxRetriesOn5xx(max_auto_retries_);
+ webstore_data_url_fetcher_->SetAutomaticallyRetryOnNetworkChanges(
+ max_auto_retries_);
+ }
webstore_data_url_fetcher_->Start();
}
« no previous file with comments | « chrome/browser/extensions/webstore_data_fetcher.h ('k') | chrome/browser/ui/webui/chromeos/login/kiosk_app_menu_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698