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

Unified Diff: chrome/common/localized_error.h

Issue 1442433003: Add "Show saved copy" button in dino page when there's offline copy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address thestig's feedback Created 5 years, 1 month 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/common/localized_error.h
diff --git a/chrome/common/localized_error.h b/chrome/common/localized_error.h
index 32374818b82ba0f713bf909b4420830919f0f110..5887ddd1cd4a34e8f2459e05cd790b3c18b0c1e5 100644
--- a/chrome/common/localized_error.h
+++ b/chrome/common/localized_error.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
+#include "components/error_page/common/offline_page_types.h"
#include "url/gurl.h"
namespace base {
@@ -26,6 +27,7 @@ struct ErrorPageParams;
class LocalizedError {
public:
+
Lei Zhang 2015/11/23 23:43:37 Not sure why this is here - git cl lint will compl
jianli 2015/11/23 23:49:50 Done.
// Fills |error_strings| with values to be used to build an error page used
// on HTTP errors, like 404 or connection reset.
static void GetStrings(int error_code,
@@ -34,7 +36,7 @@ class LocalizedError {
bool is_post,
bool stale_copy_in_cache,
bool can_show_network_diagnostics_dialog,
- bool has_offline_pages,
+ error_page::OfflinePageStatus offline_page_status,
const std::string& locale,
const std::string& accept_languages,
scoped_ptr<error_page::ErrorPageParams> params,

Powered by Google App Engine
This is Rietveld 408576698