Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(868)

Side by Side Diff: chrome/browser/ui/views/chrome_cleaner_dialog_win.cc

Issue 2922263002: Fix style of profile error dialog. (Closed)
Patch Set: nit Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_win.h" 5 #include "chrome/browser/ui/views/chrome_cleaner_dialog_win.h"
6 6
7 #include "base/strings/string16.h" 7 #include "base/strings/string16.h"
8 #include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_dialog_cont roller_win.h" 8 #include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_dialog_cont roller_win.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"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 DCHECK(!browser_); 66 DCHECK(!browser_);
67 DCHECK(controller_); 67 DCHECK(controller_);
68 68
69 browser_ = browser; 69 browser_ = browser;
70 constrained_window::CreateBrowserModalDialogViews( 70 constrained_window::CreateBrowserModalDialogViews(
71 this, browser_->window()->GetNativeWindow()) 71 this, browser_->window()->GetNativeWindow())
72 ->Show(); 72 ->Show();
73 controller_->DialogShown(); 73 controller_->DialogShown();
74 } 74 }
75 75
76 // DialogModel overrides.
77
78 bool ChromeCleanerDialog::ShouldDefaultButtonBeBlue() const {
79 return true;
80 }
81
82 // WidgetDelegate overrides. 76 // WidgetDelegate overrides.
83 77
84 ui::ModalType ChromeCleanerDialog::GetModalType() const { 78 ui::ModalType ChromeCleanerDialog::GetModalType() const {
85 return ui::MODAL_TYPE_WINDOW; 79 return ui::MODAL_TYPE_WINDOW;
86 } 80 }
87 81
88 base::string16 ChromeCleanerDialog::GetWindowTitle() const { 82 base::string16 ChromeCleanerDialog::GetWindowTitle() const {
89 DCHECK(controller_); 83 DCHECK(controller_);
90 return controller_->GetWindowTitle(); 84 return controller_->GetWindowTitle();
91 } 85 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 DCHECK(browser_); 138 DCHECK(browser_);
145 139
146 // TODO(alito): Navigate to the webui version of the Chrome Cleaner UI when 140 // TODO(alito): Navigate to the webui version of the Chrome Cleaner UI when
147 // that is implemented. 141 // that is implemented.
148 if (controller_) { 142 if (controller_) {
149 controller_->DetailsButtonClicked(); 143 controller_->DetailsButtonClicked();
150 controller_ = nullptr; 144 controller_ = nullptr;
151 } 145 }
152 GetWidget()->Close(); 146 GetWidget()->Close();
153 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698