| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <gtk/gtk.h> | 5 #include <gtk/gtk.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 int response_id) { | 139 int response_id) { |
| 140 DCHECK(result_callback_); | 140 DCHECK(result_callback_); |
| 141 | 141 |
| 142 Hide(); | 142 Hide(); |
| 143 base::ResetAndReturn(&result_callback_).Run( | 143 base::ResetAndReturn(&result_callback_).Run( |
| 144 (response_id == GTK_RESPONSE_OK) ? Result::OK : Result::CANCEL); | 144 (response_id == GTK_RESPONSE_OK) ? Result::OK : Result::CANCEL); |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace | 147 } // namespace |
| 148 | 148 |
| 149 // static | 149 std::unique_ptr<It2MeConfirmationDialog> |
| 150 std::unique_ptr<It2MeConfirmationDialog> It2MeConfirmationDialog::Create() { | 150 It2MeConfirmationDialogFactory::Create() { |
| 151 return base::MakeUnique<It2MeConfirmationDialogLinux>(); | 151 return base::MakeUnique<It2MeConfirmationDialogLinux>(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace remoting | 154 } // namespace remoting |
| OLD | NEW |