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

Unified Diff: chrome/common/localized_error.h

Issue 13811022: New network error page: Fix resubmit warning page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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/common/localized_error.h
===================================================================
--- chrome/common/localized_error.h (revision 194125)
+++ chrome/common/localized_error.h (working copy)
@@ -29,23 +29,17 @@
// 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(const WebKit::WebURLError& error,
- base::DictionaryValue* strings,
- const std::string& locale);
+ bool is_post,
+ const std::string& locale,
+ base::DictionaryValue* strings);
// Returns a description of the encountered error.
- static string16 GetErrorDetails(const WebKit::WebURLError& error);
+ static string16 GetErrorDetails(const WebKit::WebURLError& error,
+ bool is_post);
// Returns true if an error page exists for the specified parameters.
static bool HasStrings(const std::string& error_domain, int error_code);
- // Fills |error_strings| with values to be used to build an error page which
- // warns against reposting form data. This is special cased because the form
- // repost "error page" has no real error associated with it, and doesn't have
- // enough strings localized to meaningfully fill the net error template.
- // TODO(mmenke): Get rid of this and merge with GetStrings.
- static void GetFormRepostStrings(const GURL& display_url,
- base::DictionaryValue* error_strings);
-
// Fills |error_strings| with values to be used to build an error page used
// on HTTP errors, like 404 or connection reset, but using information from
// the associated |app| in order to make the error page look like it's more

Powered by Google App Engine
This is Rietveld 408576698