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

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

Issue 2326553003: Adding a Confirmation dialog for It2Me on Windows (Closed)
Patch Set: Addressing CR feedback Created 4 years, 3 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"
11 #include "base/i18n/message_formatter.h" 11 #include "base/i18n/message_formatter.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ptr_util.h"
13 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
14 #include "remoting/base/string_resources.h" 15 #include "remoting/base/string_resources.h"
15 #include "remoting/host/chromeos/message_box.h" 16 #include "remoting/host/chromeos/message_box.h"
16 #include "remoting/host/it2me/it2me_confirmation_dialog.h" 17 #include "remoting/host/it2me/it2me_confirmation_dialog.h"
17 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
18 19
19 namespace remoting { 20 namespace remoting {
20 21
21 class It2MeConfirmationDialogChromeOS : public It2MeConfirmationDialog { 22 class It2MeConfirmationDialogChromeOS : public It2MeConfirmationDialog {
22 public: 23 public:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 63
63 void It2MeConfirmationDialogChromeOS::OnMessageBoxResult( 64 void It2MeConfirmationDialogChromeOS::OnMessageBoxResult(
64 MessageBox::Result result) { 65 MessageBox::Result result) {
65 message_box_->Hide(); 66 message_box_->Hide();
66 base::ResetAndReturn(&callback_).Run(result == MessageBox::OK ? 67 base::ResetAndReturn(&callback_).Run(result == MessageBox::OK ?
67 Result::OK : Result::CANCEL); 68 Result::OK : Result::CANCEL);
68 } 69 }
69 70
70 std::unique_ptr<It2MeConfirmationDialog> 71 std::unique_ptr<It2MeConfirmationDialog>
71 It2MeConfirmationDialogFactory::Create() { 72 It2MeConfirmationDialogFactory::Create() {
72 return std::unique_ptr<It2MeConfirmationDialog>( 73 return base::MakeUnique<It2MeConfirmationDialogChromeOS>();
73 new It2MeConfirmationDialogChromeOS());
74 } 74 }
75 75
76 } // namespace remoting 76 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/it2me/it2me_confirmation_dialog_android.cc ('k') | remoting/host/it2me/it2me_confirmation_dialog_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698