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 @@ ...@@ -2,8 +2,7 @@
<html build="$i18n{buildType}" <html build="$i18n{buildType}"
dir="$i18n{textdirection}" dir="$i18n{textdirection}"
lang="$i18n{language}" lang="$i18n{language}"
screen="$i18n{screenType}" screen="$i18n{screenType}">
$i18n{dark}>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="google" value="notranslate"> <meta name="google" value="notranslate">
...@@ -363,6 +362,5 @@ ...@@ -363,6 +362,5 @@
</user-manager-pages> </user-manager-pages>
<link rel="import" href="chrome://resources/html/i18n_template.html"> <link rel="import" href="chrome://resources/html/i18n_template.html">
<script src="user_manager.js"></script> <script src="user_manager.js"></script>
<link rel="import" href="chrome://resources/html/dark_mode.html">
</body> </body>
</html> </html>
<!doctype html> <!doctype html>
<html dir="$i18n{textdirection}" lang="$i18n{language}" $i18n{dark}> <html dir="$i18n{textdirection}" lang="$i18n{language}">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<style> <style>
...@@ -22,6 +22,5 @@ ...@@ -22,6 +22,5 @@
<link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css"> <link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css">
<link rel="stylesheet" href="chrome://resources/css/md_colors.css"> <link rel="stylesheet" href="chrome://resources/css/md_colors.css">
<link rel="import" href="new/app.html"> <link rel="import" href="new/app.html">
<link rel="import" href="chrome://resources/html/dark_mode.html">
</body> </body>
</html> </html>
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "chrome/browser/printing/print_preview_data_service.h" #include "chrome/browser/printing/print_preview_data_service.h"
#include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/chrome_pages.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/localized_string.h"
#include "chrome/browser/ui/webui/metrics_handler.h" #include "chrome/browser/ui/webui/metrics_handler.h"
#include "chrome/browser/ui/webui/print_preview/print_preview_handler.h" #include "chrome/browser/ui/webui/print_preview/print_preview_handler.h"
...@@ -467,7 +466,6 @@ PrintPreviewUI::PrintPreviewUI(content::WebUI* web_ui) ...@@ -467,7 +466,6 @@ PrintPreviewUI::PrintPreviewUI(content::WebUI* web_ui)
// Set up the chrome://print/ data source. // Set up the chrome://print/ data source.
Profile* profile = Profile::FromWebUI(web_ui); Profile* profile = Profile::FromWebUI(web_ui);
content::WebUIDataSource* source = CreatePrintPreviewUISource(profile); content::WebUIDataSource* source = CreatePrintPreviewUISource(profile);
DarkModeHandler::Initialize(web_ui, source);
content::WebUIDataSource::Add(profile, source); content::WebUIDataSource::Add(profile, source);
// Set up the chrome://theme/ source. // Set up the chrome://theme/ source.
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_shortcut_manager.h" #include "chrome/browser/profiles/profile_shortcut_manager.h"
#include "chrome/browser/signin/signin_util.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_create_profile_handler.h"
#include "chrome/browser/ui/webui/signin/signin_utils.h" #include "chrome/browser/ui/webui/signin/signin_utils.h"
#include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h"
...@@ -45,7 +44,6 @@ MDUserManagerUI::MDUserManagerUI(content::WebUI* web_ui) ...@@ -45,7 +44,6 @@ MDUserManagerUI::MDUserManagerUI(content::WebUI* web_ui)
// Set up the chrome://md-user-manager/ source. // Set up the chrome://md-user-manager/ source.
auto* md_user_source = CreateUIDataSource(localized_strings); auto* md_user_source = CreateUIDataSource(localized_strings);
DarkModeHandler::Initialize(web_ui, md_user_source);
content::WebUIDataSource::Add(profile, md_user_source); content::WebUIDataSource::Add(profile, md_user_source);
// Set up the chrome://theme/ 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