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

Side by Side Diff: chrome/renderer/localized_error.cc

Issue 5826003: Add text for a pair of errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix Chrome name substitution, sync with trunk Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/localized_error.h" 5 #include "chrome/renderer/localized_error.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/i18n/rtl.h" 8 #include "base/i18n/rtl.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 IDS_ERRORPAGES_DETAILS_INTERNET_DISCONNECTED, 107 IDS_ERRORPAGES_DETAILS_INTERNET_DISCONNECTED,
108 SUGGEST_NONE, 108 SUGGEST_NONE,
109 }, 109 },
110 {net::ERR_FILE_NOT_FOUND, 110 {net::ERR_FILE_NOT_FOUND,
111 IDS_ERRORPAGES_TITLE_NOT_FOUND, 111 IDS_ERRORPAGES_TITLE_NOT_FOUND,
112 IDS_ERRORPAGES_HEADING_NOT_FOUND, 112 IDS_ERRORPAGES_HEADING_NOT_FOUND,
113 IDS_ERRORPAGES_SUMMARY_NOT_FOUND, 113 IDS_ERRORPAGES_SUMMARY_NOT_FOUND,
114 IDS_ERRORPAGES_DETAILS_FILE_NOT_FOUND, 114 IDS_ERRORPAGES_DETAILS_FILE_NOT_FOUND,
115 SUGGEST_NONE, 115 SUGGEST_NONE,
116 }, 116 },
117 {net::ERR_CACHE_READ_FAILURE,
118 IDS_ERRORPAGES_TITLE_LOAD_FAILED,
119 IDS_ERRORPAGES_HEADING_CACHE_READ_FAILURE,
120 IDS_ERRORPAGES_SUMMARY_CACHE_READ_FAILURE,
121 IDS_ERRORPAGES_DETAILS_CACHE_READ_FAILURE,
122 SUGGEST_RELOAD,
123 },
124 {net::ERR_NETWORK_IO_SUSPENDED,
125 IDS_ERRORPAGES_TITLE_LOAD_FAILED,
126 IDS_ERRORPAGES_HEADING_NETWORK_IO_SUSPENDED,
127 IDS_ERRORPAGES_SUMMARY_NETWORK_IO_SUSPENDED,
128 IDS_ERRORPAGES_DETAILS_NETWORK_IO_SUSPENDED,
129 SUGGEST_RELOAD,
130 },
117 {net::ERR_TOO_MANY_REDIRECTS, 131 {net::ERR_TOO_MANY_REDIRECTS,
118 IDS_ERRORPAGES_TITLE_LOAD_FAILED, 132 IDS_ERRORPAGES_TITLE_LOAD_FAILED,
119 IDS_ERRORPAGES_HEADING_TOO_MANY_REDIRECTS, 133 IDS_ERRORPAGES_HEADING_TOO_MANY_REDIRECTS,
120 IDS_ERRORPAGES_SUMMARY_TOO_MANY_REDIRECTS, 134 IDS_ERRORPAGES_SUMMARY_TOO_MANY_REDIRECTS,
121 IDS_ERRORPAGES_DETAILS_TOO_MANY_REDIRECTS, 135 IDS_ERRORPAGES_DETAILS_TOO_MANY_REDIRECTS,
122 SUGGEST_RELOAD | SUGGEST_LEARNMORE, 136 SUGGEST_RELOAD | SUGGEST_LEARNMORE,
123 }, 137 },
124 {net::ERR_SSL_PROTOCOL_ERROR, 138 {net::ERR_SSL_PROTOCOL_ERROR,
125 IDS_ERRORPAGES_TITLE_LOAD_FAILED, 139 IDS_ERRORPAGES_TITLE_LOAD_FAILED,
126 IDS_ERRORPAGES_HEADING_SSL_PROTOCOL_ERROR, 140 IDS_ERRORPAGES_HEADING_SSL_PROTOCOL_ERROR,
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 error_strings->SetString( 525 error_strings->SetString(
512 "url", l10n_util::GetStringFUTF16(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, 526 "url", l10n_util::GetStringFUTF16(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
513 failed_url.c_str())); 527 failed_url.c_str()));
514 528
515 error_strings->SetString("title", app->name()); 529 error_strings->SetString("title", app->name());
516 error_strings->SetString("icon", app->icon_url().spec()); 530 error_strings->SetString("icon", app->icon_url().spec());
517 error_strings->SetString("name", app->name()); 531 error_strings->SetString("name", app->name());
518 error_strings->SetString("msg", 532 error_strings->SetString("msg",
519 l10n_util::GetStringUTF16(IDS_ERRORPAGES_APP_WARNING)); 533 l10n_util::GetStringUTF16(IDS_ERRORPAGES_APP_WARNING));
520 } 534 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698