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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_dialog_cocoa.mm

Issue 2132593002: Remove remaining calls to deprecated MessageLoop methods on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: h264_vt_encoder_unittest.cc Created 4 years, 5 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 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/panels/display_settings_provider_cocoa.mm ('k') | chrome/browser/ui/cocoa/status_bubble_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698