OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import "chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_dialog_coc
oa.h" | 5 #import "chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_dialog_coc
oa.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/threading/thread_task_runner_handle.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_finder.h" | 9 #include "chrome/browser/ui/browser_finder.h" |
10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" | 11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" |
12 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi
ndow.h" | 12 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi
ndow.h" |
13 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" | 13 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" |
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 profile, base::Bind(ShowDialog, browser, web_contents, profile, username, | 76 profile, base::Bind(ShowDialog, browser, web_contents, profile, username, |
77 delegate)); | 77 delegate)); |
78 } | 78 } |
79 | 79 |
80 void ProfileSigninConfirmationDialogCocoa::Close() { | 80 void ProfileSigninConfirmationDialogCocoa::Close() { |
81 window_->CloseWebContentsModalDialog(); | 81 window_->CloseWebContentsModalDialog(); |
82 } | 82 } |
83 | 83 |
84 void ProfileSigninConfirmationDialogCocoa::OnConstrainedWindowClosed( | 84 void ProfileSigninConfirmationDialogCocoa::OnConstrainedWindowClosed( |
85 ConstrainedWindowMac* window) { | 85 ConstrainedWindowMac* window) { |
86 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 86 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); |
87 } | 87 } |
OLD | NEW |