OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/views/chrome_cleaner_dialog.h" | 5 #include "chrome/browser/ui/views/chrome_cleaner_dialog.h" |
6 | 6 |
7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
8 #include "chrome/browser/safe_browsing/chrome_cleaner_dialog_controller.h" | 8 #include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_dialog_cont
roller.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_dialogs.h" | 10 #include "chrome/browser/ui/browser_dialogs.h" |
11 #include "chrome/browser/ui/browser_window.h" | 11 #include "chrome/browser/ui/browser_window.h" |
12 #include "components/constrained_window/constrained_window_views.h" | 12 #include "components/constrained_window/constrained_window_views.h" |
13 #include "ui/base/ui_base_types.h" | 13 #include "ui/base/ui_base_types.h" |
14 #include "ui/events/event.h" | 14 #include "ui/events/event.h" |
15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
16 #include "ui/gfx/text_constants.h" | 16 #include "ui/gfx/text_constants.h" |
17 #include "ui/views/controls/label.h" | 17 #include "ui/views/controls/label.h" |
18 #include "ui/views/layout/box_layout.h" | 18 #include "ui/views/layout/box_layout.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 DCHECK(browser_); | 148 DCHECK(browser_); |
149 | 149 |
150 // TODO(alito): Navigate to the webui version of the Chrome Cleaner UI when | 150 // TODO(alito): Navigate to the webui version of the Chrome Cleaner UI when |
151 // that is implemented. | 151 // that is implemented. |
152 if (controller_) { | 152 if (controller_) { |
153 controller_->AdvancedButtonClicked(); | 153 controller_->AdvancedButtonClicked(); |
154 controller_ = nullptr; | 154 controller_ = nullptr; |
155 } | 155 } |
156 GetWidget()->Close(); | 156 GetWidget()->Close(); |
157 } | 157 } |
OLD | NEW |