Commit b34db1eb authored by Edward Jung's avatar Edward Jung Committed by Commit Bot

chrome://dino post M69 removal of bday mode

Bug: 846473
Change-Id: I46923a902045b531578439e73068c0fd93c66691
Reviewed-on: https://chromium-review.googlesource.com/1240301Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Edward Jung <edwardjung@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594408}
parent 95f93d44
......@@ -1926,7 +1926,6 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
static const char* const kDinosaurEasterEggSwitches[] = {
error_page::switches::kDisableDinosaurEasterEgg,
error_page::switches::kEnableEasterEggBdayMode,
};
command_line->CopySwitchesFrom(browser_command_line,
kDinosaurEasterEggSwitches,
......
......@@ -6,8 +6,6 @@ static_library("common") {
sources = [
"error.cc",
"error.h",
"error_page_features.cc",
"error_page_features.h",
"error_page_params.cc",
"error_page_params.h",
"error_page_switches.cc",
......
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/error_page/common/error_page_features.h"
namespace error_page {
namespace features {
const base::Feature kDinoEasterEggBdayMode{"DinoEasterEggBdayMode",
base::FEATURE_DISABLED_BY_DEFAULT};
} // namespace features
} // namespace error_page
\ No newline at end of file
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_ERROR_PAGE_COMMON_ERROR_PAGE_FEATURES_H_
#define COMPONENTS_ERROR_PAGE_COMMON_ERROR_PAGE_FEATURES_H_
#include "base/feature_list.h"
namespace error_page {
namespace features {
// Defines all the features used by //components/error_page.
// Enables or disables the offline dino easter egg bday mode.
extern const base::Feature kDinoEasterEggBdayMode;
} // namespace features
} // namespace error_page
#endif // COMPONENTS_ERROR_PAGE_COMMON_ERROR_PAGE_FEATURES_H_
......@@ -9,7 +9,6 @@ namespace switches {
// Disables the dinosaur easter egg on the offline interstitial.
const char kDisableDinosaurEasterEgg[] = "disable-dinosaur-easter-egg";
const char kEnableEasterEggBdayMode[] = "enable-dino-easter-egg-bday-mode";
// Values for the kShowSavedCopy flag.
const char kDisableShowSavedCopy[] = "disable";
......
......@@ -12,7 +12,6 @@ namespace switches {
extern const char kDisableDinosaurEasterEgg[];
extern const char kDisableShowSavedCopy[];
extern const char kEnableEasterEggBdayMode[];
extern const char kEnableShowSavedCopyPrimary[];
extern const char kEnableShowSavedCopySecondary[];
extern const char kShowSavedCopy[];
......
......@@ -22,7 +22,6 @@
#include "base/values.h"
#include "build/build_config.h"
#include "components/error_page/common/error.h"
#include "components/error_page/common/error_page_features.h"
#include "components/error_page/common/error_page_params.h"
#include "components/error_page/common/error_page_switches.h"
#include "components/error_page/common/net_error_info.h"
......@@ -945,12 +944,6 @@ void LocalizedError::GetStrings(
l10n_util::GetStringUTF16(IDS_ERRORPAGE_FUN_DISABLED));
}
if (command_line->HasSwitch(error_page::switches::kEnableEasterEggBdayMode) ||
base::FeatureList::IsEnabled(
error_page::features::kDinoEasterEggBdayMode)) {
error_strings->SetBoolean("bdayMode", true);
}
summary->SetString("failedUrl", failed_url_string);
summary->SetString("hostName", host_name);
......
......@@ -132,8 +132,6 @@
<div id="offline-resources">
<img id="offline-resources-1x" src="images/default_100_percent/offline/100-offline-sprite.png">
<img id="offline-resources-2x" src="images/default_200_percent/offline/200-offline-sprite.png">
<img id="offline-resources-bday-1x" src="images/default_100_percent/offline/100-offline-sprite-bday.png">
<img id="offline-resources-bday-2x" src="images/default_200_percent/offline/200-offline-sprite-bday.png">
<template id="audio-resources">
<audio id="offline-sound-press" src="sounds/button-press.mp3"></audio>
<audio id="offline-sound-hit" src="sounds/hit.mp3"></audio>
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment