| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/browser_dialogs.h" | 5 #include "chrome/browser/ui/browser_dialogs.h" |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/api/chrome_device_permissions_prompt.h" |
| 7 #include "chrome/browser/extensions/extension_install_prompt.h" | 8 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 8 #include "chrome/browser/ui/login/login_handler.h" | 9 #include "chrome/browser/ui/login/login_handler.h" |
| 9 | 10 |
| 10 // This file provides definitions of desktop browser dialog-creation methods for | 11 // This file provides definitions of desktop browser dialog-creation methods for |
| 11 // all toolkit-views platforms other than Mac. It also provides the definitions | 12 // all toolkit-views platforms other than Mac. It also provides the definitions |
| 12 // on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is | 13 // on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is |
| 13 // excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may | 14 // excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may |
| 14 // select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog | 15 // select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog |
| 15 // provided by browser_dialogs.h. | 16 // provided by browser_dialogs.h. |
| 16 | 17 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 27 Configuration configuration) { | 28 Configuration configuration) { |
| 28 chrome::ShowBookmarkEditorViews(parent_window, profile, details, | 29 chrome::ShowBookmarkEditorViews(parent_window, profile, details, |
| 29 configuration); | 30 configuration); |
| 30 } | 31 } |
| 31 | 32 |
| 32 // static | 33 // static |
| 33 ExtensionInstallPrompt::ShowDialogCallback | 34 ExtensionInstallPrompt::ShowDialogCallback |
| 34 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { | 35 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { |
| 35 return ExtensionInstallPrompt::GetViewsShowDialogCallback(); | 36 return ExtensionInstallPrompt::GetViewsShowDialogCallback(); |
| 36 } | 37 } |
| 38 |
| 39 void ChromeDevicePermissionsPrompt::ShowDialog() { |
| 40 ShowDialogViews(); |
| 41 } |
| OLD | NEW |