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

Unified Diff: chrome/renderer/net/net_error_helper.cc

Issue 977323003: Disable easter egg on enterprised enrolled devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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");
}

Powered by Google App Engine
This is Rietveld 408576698