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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/simple_message_box_android.cc
diff --git a/chrome/browser/ui/android/simple_message_box_android.cc b/chrome/browser/ui/android/simple_message_box_android.cc
index c155416e86d3d2de4968636e0ed633ef461db5ef..d620fb665fbb15291a55bec05f109f864f6c1a34 100644
--- a/chrome/browser/ui/android/simple_message_box_android.cc
+++ b/chrome/browser/ui/android/simple_message_box_android.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/simple_message_box.h"
+#include <utility>
+
#include "base/logging.h"
namespace chrome {
@@ -21,12 +23,14 @@ MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent,
return MESSAGE_BOX_RESULT_NO;
}
-bool ShowWarningMessageBoxWithCheckbox(gfx::NativeWindow parent,
- const base::string16& title,
- const base::string16& message,
- const base::string16& checkbox_text) {
+void ShowWarningMessageBoxWithCheckbox(
+ gfx::NativeWindow parent,
+ const base::string16& title,
+ const base::string16& message,
+ const base::string16& checkbox_text,
+ base::OnceCallback<void(bool checked)> callback) {
NOTIMPLEMENTED();
- return false;
+ 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(
}
} // namespace chrome
« 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