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 #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 Loading... |
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 |
OLD | NEW |