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

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

Powered by Google App Engine
This is Rietveld 408576698