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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 int response_id) { | 137 int response_id) { |
138 DCHECK(result_callback_); | 138 DCHECK(result_callback_); |
139 | 139 |
140 Hide(); | 140 Hide(); |
141 base::ResetAndReturn(&result_callback_).Run( | 141 base::ResetAndReturn(&result_callback_).Run( |
142 (response_id == GTK_RESPONSE_OK) ? Result::OK : Result::CANCEL); | 142 (response_id == GTK_RESPONSE_OK) ? Result::OK : Result::CANCEL); |
143 } | 143 } |
144 | 144 |
145 } // namespace | 145 } // namespace |
146 | 146 |
147 std::unique_ptr<It2MeConfirmationDialog> | 147 // static |
148 It2MeConfirmationDialogFactory::Create() { | 148 std::unique_ptr<It2MeConfirmationDialog> It2MeConfirmationDialog::Create() { |
149 return base::MakeUnique<It2MeConfirmationDialogLinux>(); | 149 return base::MakeUnique<It2MeConfirmationDialogLinux>(); |
150 } | 150 } |
151 | 151 |
152 } // namespace remoting | 152 } // namespace remoting |
OLD | NEW |