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

Unified Diff: chrome/common/localized_error.cc

Issue 207553008: Surface button for loading stale cache copy on net error page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Shift text to match behavior doc. Created 6 years, 9 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 | « chrome/browser/errorpage_browsertest.cc ('k') | chrome/renderer/resources/neterror.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/localized_error.cc
diff --git a/chrome/common/localized_error.cc b/chrome/common/localized_error.cc
index 2e0b80847f5fce79c75a78a6e7656643a1ca62c0..658c6dcb562620625466675746f9f9f2485d22fd 100644
--- a/chrome/common/localized_error.cc
+++ b/chrome/common/localized_error.cc
@@ -669,12 +669,17 @@ void LocalizedError::GetStrings(int error_code,
}
}
+ if (stale_copy_in_cache) {
mmenke 2014/03/26 15:06:14 I suggest putting this below use_default_suggestio
Randy Smith (Not in Mondays) 2014/03/26 20:40:12 This currently happens only in the link doctor cas
mmenke 2014/03/27 14:28:28 Yes, this is only in the Link Doctor case. This i
Randy Smith (Not in Mondays) 2014/04/02 19:20:58 Yeah, I thought about what it would take to do it
+ base::DictionaryValue* stale_load_button = new base::DictionaryValue;
+ stale_load_button->SetString(
+ "msg", l10n_util::GetStringUTF16(IDS_ERRORPAGES_BUTTON_STALE));
mmenke 2014/03/26 15:06:14 This subdirectory isn't needed. Instead you can j
Randy Smith (Not in Mondays) 2014/03/26 20:40:12 Done (now that I understand what's going on :-}).
+ error_strings->Set("staleCopyInCache", stale_load_button);
mmenke 2014/03/26 15:06:14 Getting the "IDS_ERRORPAGES_BUTTON_STALE" string,
Randy Smith (Not in Mondays) 2014/03/26 20:40:12 Done. Let me know if you'd like me to regularize
mmenke 2014/03/27 14:28:28 I think it'd be great if you went ahead and cleane
Randy Smith (Not in Mondays) 2014/04/02 19:20:58 I believe I've done this (just changing the templa
+ }
+
// If not using the default suggestions, nothing else to do.
if (!use_default_suggestions)
return;
- error_strings->SetBoolean("staleCopyInCache", stale_copy_in_cache);
-
#if defined(OS_CHROMEOS)
error_strings->SetString(
"diagnose", l10n_util::GetStringUTF16(IDS_ERRORPAGES_BUTTON_DIAGNOSE));
« no previous file with comments | « chrome/browser/errorpage_browsertest.cc ('k') | chrome/renderer/resources/neterror.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698