| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 base::Bind(&It2MeConfirmationDialogChromeOS::OnMessageBoxResult, | 58 base::Bind(&It2MeConfirmationDialogChromeOS::OnMessageBoxResult, |
| 59 base::Unretained(this))); | 59 base::Unretained(this))); |
| 60 } | 60 } |
| 61 | 61 |
| 62 void It2MeConfirmationDialogChromeOS::OnMessageBoxResult( | 62 void It2MeConfirmationDialogChromeOS::OnMessageBoxResult( |
| 63 MessageBox::Result result) { | 63 MessageBox::Result result) { |
| 64 base::ResetAndReturn(&callback_).Run(result == MessageBox::OK ? | 64 base::ResetAndReturn(&callback_).Run(result == MessageBox::OK ? |
| 65 Result::OK : Result::CANCEL); | 65 Result::OK : Result::CANCEL); |
| 66 } | 66 } |
| 67 | 67 |
| 68 // static | 68 std::unique_ptr<It2MeConfirmationDialog> |
| 69 std::unique_ptr<It2MeConfirmationDialog> It2MeConfirmationDialog::Create() { | 69 It2MeConfirmationDialogFactory::Create() { |
| 70 return base::MakeUnique<It2MeConfirmationDialogChromeOS>(); | 70 return base::MakeUnique<It2MeConfirmationDialogChromeOS>(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 } // namespace remoting | 73 } // namespace remoting |
| OLD | NEW |