Index: chrome/browser/ui/browser_dialogs.h |
diff --git a/chrome/browser/ui/browser_dialogs.h b/chrome/browser/ui/browser_dialogs.h |
index e82786079f6c931ae562f9a175afe233d9f37b7a..a69adf1cce79b493ba84517dabcc09231d1830b6 100644 |
--- a/chrome/browser/ui/browser_dialogs.h |
+++ b/chrome/browser/ui/browser_dialogs.h |
@@ -157,6 +157,10 @@ void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, |
payments::PaymentRequestDialog* CreatePaymentRequestDialog( |
payments::PaymentRequest* request); |
+// Used to return the target the user picked or nullopt if the user cancelled |
+// the share. |
+using WebShareTargetPickerCallback = |
+ base::OnceCallback<void(const base::Optional<std::string>&)>; |
Matt Giuca
2017/05/01 23:15:33
nit: Blank line between.
|
// Shows the dialog to choose a share target app. |targets| is a list of app |
// title and manifest URL pairs that will be shown in a list. If the user picks |
// a target, this calls |callback| with the manifest URL of the chosen target, |
@@ -164,7 +168,7 @@ payments::PaymentRequestDialog* CreatePaymentRequestDialog( |
void ShowWebShareTargetPickerDialog( |
gfx::NativeWindow parent_window, |
const std::vector<std::pair<base::string16, GURL>>& targets, |
- const base::Callback<void(base::Optional<std::string>)>& callback); |
+ WebShareTargetPickerCallback callback); |
#if defined(OS_MACOSX) |