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

Unified Diff: components/error_page/common/localized_error.cc

Issue 2618503003: Do not show DOWNLOAD PAGE LATER button for post error page (Closed)
Patch Set: Created 3 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/error_page/common/localized_error.cc
diff --git a/components/error_page/common/localized_error.cc b/components/error_page/common/localized_error.cc
index a42082186d0f023fa413219724e7d346013ea32f..5192a110541d9c3930529501b2365991e3e18c29 100644
--- a/components/error_page/common/localized_error.cc
+++ b/components/error_page/common/localized_error.cc
@@ -1037,8 +1037,9 @@ void LocalizedError::GetStrings(
}
#if defined(OS_ANDROID)
- if (!reload_visible && !show_saved_copy_visible && !is_incognito &&
- failed_url.is_valid() && failed_url.SchemeIsHTTPOrHTTPS() &&
+ if (!is_post && !reload_visible && !show_saved_copy_visible &&
+ !is_incognito && failed_url.is_valid() &&
+ failed_url.SchemeIsHTTPOrHTTPS() &&
offline_pages::IsOfflinePagesAsyncDownloadEnabled()) {
std::unique_ptr<base::DictionaryValue> download_button =
base::MakeUnique<base::DictionaryValue>();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698