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" | |
9 | 8 |
10 TabDialogsViewsMac::TabDialogsViewsMac(content::WebContents* contents) | 9 TabDialogsViewsMac::TabDialogsViewsMac(content::WebContents* contents) |
11 : TabDialogsCocoa(contents) {} | 10 : TabDialogsCocoa(contents) {} |
12 | 11 |
13 TabDialogsViewsMac::~TabDialogsViewsMac() {} | 12 TabDialogsViewsMac::~TabDialogsViewsMac() {} |
14 | 13 |
15 void TabDialogsViewsMac::ShowCollectedCookies() { | 14 void TabDialogsViewsMac::ShowCollectedCookies() { |
16 // Deletes itself on close. | 15 // Deletes itself on close. |
17 new CollectedCookiesViews(web_contents()); | 16 new CollectedCookiesViews(web_contents()); |
18 } | 17 } |
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 |