| Index: chrome/browser/ui/cocoa/browser_dialogs_views_mac.cc
|
| diff --git a/chrome/browser/ui/cocoa/browser_dialogs_views_mac.cc b/chrome/browser/ui/cocoa/browser_dialogs_views_mac.cc
|
| index f04072b70bf7c4cf2a18fa1b1e326bddb43333c9..e126936ba9537e343309a771d5e5b54b5dc9a936 100644
|
| --- a/chrome/browser/ui/cocoa/browser_dialogs_views_mac.cc
|
| +++ b/chrome/browser/ui/cocoa/browser_dialogs_views_mac.cc
|
| @@ -2,6 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "chrome/browser/ui/cocoa/browser_dialogs_views_mac.h"
|
| +
|
| #include <utility>
|
|
|
| #include "chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h"
|
| @@ -12,10 +14,12 @@
|
| #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h"
|
| #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h"
|
| #include "chrome/browser/ui/views/content_setting_bubble_contents.h"
|
| +#include "chrome/browser/ui/views/create_application_shortcut_view.h"
|
| #include "chrome/browser/ui/views/location_bar/zoom_bubble_view.h"
|
| #include "chrome/browser/ui/views/page_info/page_info_bubble_view.h"
|
| #include "chrome/browser/ui/views/task_manager_view.h"
|
| #include "chrome/browser/ui/views/update_recommended_message_box.h"
|
| +#include "components/constrained_window/constrained_window_views.h"
|
|
|
| // This file provides definitions of desktop browser dialog-creation methods for
|
| // Mac where a Cocoa browser is using Views dialogs. I.e. it is included in the
|
| @@ -119,4 +123,15 @@ void ShowUpdateChromeDialogViews(gfx::NativeWindow parent) {
|
| UpdateRecommendedMessageBox::Show(parent);
|
| }
|
|
|
| +void ShowCreateChromeAppShortcutsDialogViews(
|
| + gfx::NativeWindow parent_window,
|
| + Profile* profile,
|
| + const extensions::Extension* app,
|
| + const base::Callback<void(bool)>& close_callback) {
|
| + constrained_window::CreateBrowserModalDialogViews(
|
| + new CreateChromeApplicationShortcutView(profile, app, close_callback),
|
| + parent_window)
|
| + ->Show();
|
| +}
|
| +
|
| } // namespace chrome
|
|
|