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

Side by Side Diff: remoting/host/it2me/it2me_confirmation_dialog_linux.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 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
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
OLDNEW
« no previous file with comments | « remoting/host/it2me/it2me_confirmation_dialog_chromeos.cc ('k') | remoting/host/it2me/it2me_confirmation_dialog_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698