Index: chrome/renderer/net/net_error_helper.cc |
diff --git a/chrome/renderer/net/net_error_helper.cc b/chrome/renderer/net/net_error_helper.cc |
index be127aa9f5400bb3eee8b4037da7e8b632880fbf..e780bd44844cf2035791c1b0036a1ccf58afacbc 100644 |
--- a/chrome/renderer/net/net_error_helper.cc |
+++ b/chrome/renderer/net/net_error_helper.cc |
@@ -197,6 +197,13 @@ void NetErrorHelper::GenerateLocalizedErrorPage( |
*reload_button_shown = error_strings.Get("reloadButton", NULL); |
*load_stale_button_shown = error_strings.Get("staleLoadButton", NULL); |
+#if defined(OS_CHROMEOS) |
+ // Check if easter egg should be disabled. |
+ if (command_line->HasSwitch(switches::kDisableDinosaurEasterEgg)) { |
+ error_strings.SetString("disableEasterEgg", "1"); |
+ } |
+#endif |
+ |
// "t" is the id of the template's root node. |
*error_html = webui::GetTemplatesHtml(template_html, &error_strings, "t"); |
} |