| Index: chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc b/chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc
|
| index c17286c4b01e745639329e45468319ecbfccaad0..9b292260ba79d3ef83984857ca2400c6226192cc 100644
|
| --- a/chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc
|
| @@ -82,11 +82,17 @@ void DisplayOverscanHandler::RegisterMessages() {
|
| }
|
|
|
| void DisplayOverscanHandler::OnDisplayAdded(const gfx::Display& new_display) {
|
| + if (!overscan_calibrator_)
|
| + return;
|
| +
|
| web_ui()->CallJavascriptFunction(
|
| "options.DisplayOverscan.onOverscanCanceled");
|
| }
|
|
|
| void DisplayOverscanHandler::OnDisplayRemoved(const gfx::Display& old_display) {
|
| + if (!overscan_calibrator_)
|
| + return;
|
| +
|
| web_ui()->CallJavascriptFunction(
|
| "options.DisplayOverscan.onOverscanCanceled");
|
| }
|
|
|