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

Side by Side Diff: remoting/host/it2me/it2me_confirmation_dialog_chromeos.cc

Issue 2372833002: Removing It2MeConfirmationDialogFactory (Closed)
Patch Set: Addressing feedback Created 4 years, 2 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 #include <memory> 5 #include <memory>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 message_box_->Show(); 61 message_box_->Show();
62 } 62 }
63 63
64 void It2MeConfirmationDialogChromeOS::OnMessageBoxResult( 64 void It2MeConfirmationDialogChromeOS::OnMessageBoxResult(
65 MessageBox::Result result) { 65 MessageBox::Result result) {
66 message_box_->Hide(); 66 message_box_->Hide();
67 base::ResetAndReturn(&callback_).Run(result == MessageBox::OK ? 67 base::ResetAndReturn(&callback_).Run(result == MessageBox::OK ?
68 Result::OK : Result::CANCEL); 68 Result::OK : Result::CANCEL);
69 } 69 }
70 70
71 std::unique_ptr<It2MeConfirmationDialog> 71 // static
72 It2MeConfirmationDialogFactory::Create() { 72 std::unique_ptr<It2MeConfirmationDialog> It2MeConfirmationDialog::Create() {
73 return base::MakeUnique<It2MeConfirmationDialogChromeOS>(); 73 return base::MakeUnique<It2MeConfirmationDialogChromeOS>();
74 } 74 }
75 75
76 } // namespace remoting 76 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/it2me/it2me_confirmation_dialog.cc ('k') | remoting/host/it2me/it2me_confirmation_dialog_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698