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/cocoa/tab_dialogs_views_mac.h" | 5 #include "chrome/browser/ui/cocoa/tab_dialogs_views_mac.h" |
6 | 6 |
7 #include "chrome/browser/ui/views/collected_cookies_views.h" | 7 #include "chrome/browser/ui/views/collected_cookies_views.h" |
| 8 #include "chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.
h" |
8 | 9 |
9 TabDialogsViewsMac::TabDialogsViewsMac(content::WebContents* contents) | 10 TabDialogsViewsMac::TabDialogsViewsMac(content::WebContents* contents) |
10 : TabDialogsCocoa(contents) {} | 11 : TabDialogsCocoa(contents) {} |
11 | 12 |
12 TabDialogsViewsMac::~TabDialogsViewsMac() {} | 13 TabDialogsViewsMac::~TabDialogsViewsMac() {} |
13 | 14 |
14 void TabDialogsViewsMac::ShowCollectedCookies() { | 15 void TabDialogsViewsMac::ShowCollectedCookies() { |
15 // Deletes itself on close. | 16 // Deletes itself on close. |
16 new CollectedCookiesViews(web_contents()); | 17 new CollectedCookiesViews(web_contents()); |
17 } | 18 } |
| 19 |
| 20 void TabDialogsViewsMac::ShowProfileSigninConfirmation( |
| 21 Browser* browser, |
| 22 Profile* profile, |
| 23 const std::string& username, |
| 24 std::unique_ptr<ui::ProfileSigninConfirmationDelegate> delegate) { |
| 25 ProfileSigninConfirmationDialogViews::ShowDialog(browser, profile, username, |
| 26 std::move(delegate)); |
| 27 } |
OLD | NEW |