Commit 340e6008 authored by Dan Beam's avatar Dan Beam Committed by Commit Bot

WebUI Dark Mode: force user manager and print preview into light mode

This is in the unlikely event that dark mode actually makes it in 73.
These UIs are not ready yet.

R=dpapad@chromium.org
BUG=883049

Change-Id: Iaa79feadd8d341c4b730a9a6598f42c756070613
Reviewed-on: https://chromium-review.googlesource.com/c/1435517Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Auto-Submit: Dan Beam (slow until 1/29) <dbeam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625843}
parent e397eb2c
......@@ -2,8 +2,7 @@
<html build="$i18n{buildType}"
dir="$i18n{textdirection}"
lang="$i18n{language}"
screen="$i18n{screenType}"
$i18n{dark}>
screen="$i18n{screenType}">
<head>
<meta charset="utf-8">
<meta name="google" value="notranslate">
......@@ -363,6 +362,5 @@
</user-manager-pages>
<link rel="import" href="chrome://resources/html/i18n_template.html">
<script src="user_manager.js"></script>
<link rel="import" href="chrome://resources/html/dark_mode.html">
</body>
</html>
<!doctype html>
<html dir="$i18n{textdirection}" lang="$i18n{language}" $i18n{dark}>
<html dir="$i18n{textdirection}" lang="$i18n{language}">
<head>
<meta charset="utf-8">
<style>
......@@ -22,6 +22,5 @@
<link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css">
<link rel="stylesheet" href="chrome://resources/css/md_colors.css">
<link rel="import" href="new/app.html">
<link rel="import" href="chrome://resources/html/dark_mode.html">
</body>
</html>
......@@ -29,7 +29,6 @@
#include "chrome/browser/printing/print_preview_data_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/browser/ui/webui/dark_mode_handler.h"
#include "chrome/browser/ui/webui/localized_string.h"
#include "chrome/browser/ui/webui/metrics_handler.h"
#include "chrome/browser/ui/webui/print_preview/print_preview_handler.h"
......@@ -467,7 +466,6 @@ PrintPreviewUI::PrintPreviewUI(content::WebUI* web_ui)
// Set up the chrome://print/ data source.
Profile* profile = Profile::FromWebUI(web_ui);
content::WebUIDataSource* source = CreatePrintPreviewUISource(profile);
DarkModeHandler::Initialize(web_ui, source);
content::WebUIDataSource::Add(profile, source);
// Set up the chrome://theme/ source.
......
......@@ -13,7 +13,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_shortcut_manager.h"
#include "chrome/browser/signin/signin_util.h"
#include "chrome/browser/ui/webui/dark_mode_handler.h"
#include "chrome/browser/ui/webui/signin/signin_create_profile_handler.h"
#include "chrome/browser/ui/webui/signin/signin_utils.h"
#include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h"
......@@ -45,7 +44,6 @@ MDUserManagerUI::MDUserManagerUI(content::WebUI* web_ui)
// Set up the chrome://md-user-manager/ source.
auto* md_user_source = CreateUIDataSource(localized_strings);
DarkModeHandler::Initialize(web_ui, md_user_source);
content::WebUIDataSource::Add(profile, md_user_source);
// Set up the chrome://theme/ source
......
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