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

Side by Side Diff: chrome/browser/ui/android/simple_message_box_android.cc

Issue 2929953002: Make profile error dialog async (Closed)
Patch Set: rebase Created 3 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/simple_message_box.h" 5 #include "chrome/browser/ui/simple_message_box.h"
6 6
7 #include <utility>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 10
9 namespace chrome { 11 namespace chrome {
10 12
11 void ShowWarningMessageBox(gfx::NativeWindow parent, 13 void ShowWarningMessageBox(gfx::NativeWindow parent,
12 const base::string16& title, 14 const base::string16& title,
13 const base::string16& message) { 15 const base::string16& message) {
14 NOTIMPLEMENTED(); 16 NOTIMPLEMENTED();
15 } 17 }
16 18
17 MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent, 19 MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent,
18 const base::string16& title, 20 const base::string16& title,
19 const base::string16& message) { 21 const base::string16& message) {
20 NOTIMPLEMENTED(); 22 NOTIMPLEMENTED();
21 return MESSAGE_BOX_RESULT_NO; 23 return MESSAGE_BOX_RESULT_NO;
22 } 24 }
23 25
24 bool ShowWarningMessageBoxWithCheckbox(gfx::NativeWindow parent, 26 void ShowWarningMessageBoxWithCheckbox(
25 const base::string16& title, 27 gfx::NativeWindow parent,
26 const base::string16& message, 28 const base::string16& title,
27 const base::string16& checkbox_text) { 29 const base::string16& message,
30 const base::string16& checkbox_text,
31 base::OnceCallback<void(bool checked)> callback) {
28 NOTIMPLEMENTED(); 32 NOTIMPLEMENTED();
29 return false; 33 std::move(callback).Run(false);
Peter Kasting 2017/06/12 23:54:19 I don't understand the function of std::move() in
xiyuan 2017/06/13 21:49:44 That is the current syntax to run a OnceClosure/On
Peter Kasting 2017/06/14 00:28:55 This doc doesn't really make any note of the move(
30 } 34 }
31 35
32 } // namespace chrome 36 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/simple_message_box_mac.mm » ('j') | chrome/browser/ui/profile_error_dialog.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698