Chromium Code Reviews| Index: chrome/common/localized_error.cc |
| diff --git a/chrome/common/localized_error.cc b/chrome/common/localized_error.cc |
| index 5472b778567b20b01b83a26fdb3b89f29467a38d..7725a6ca9ae46938e44bec5c30ccbccb7230a2da 100644 |
| --- a/chrome/common/localized_error.cc |
| +++ b/chrome/common/localized_error.cc |
| @@ -26,6 +26,11 @@ |
| #include "base/win/windows_version.h" |
| #endif |
| +#if defined(OS_CHROMEOS) |
| +#include "base/command_line.h" |
| +#include "chrome/common/chrome_switches.h" |
| +#endif |
| + |
| #if defined(ENABLE_EXTENSIONS) |
| #include "extensions/common/constants.h" |
| #include "extensions/common/extension_icon_set.h" |
| @@ -566,6 +571,17 @@ void LocalizedError::GetStrings(int error_code, |
| error_code == chrome_common_net::DNS_PROBE_FINISHED_NO_INTERNET) { |
| error_strings->SetString("primaryParagraph", |
| l10n_util::GetStringUTF16(options.summary_resource_id)); |
| + |
| +#if defined(OS_CHROMEOS) |
| + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| + |
| + // Check if easter egg should be disabled. |
| + if (command_line->HasSwitch(switches::kDisableDinosaurEasterEgg)) { |
| + error_strings->SetString("disabledEasterEgg", |
|
Andrew T Wilson (Slow)
2015/03/23 16:38:27
Maybe add a comment that the presence of this stri
edwardjung
2015/03/24 16:07:35
Done.
|
| + l10n_util::GetStringUTF16(IDS_ERRORPAGE_FUN_DISABLED)); |
| + } |
| +#endif |
| + |
| } else { |
| // Set summary message in the details. |
| summary->SetString("msg", |