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

Side by Side Diff: remoting/host/it2me/it2me_confirmation_dialog_linux.cc

Issue 2650443002: Webapp share dialog is not closed when client end of the connection is closed (Closed)
Patch Set: Merging changes from dependent CL Created 3 years, 9 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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