diff options
| author | juncai <juncai@chromium.org> | 2016-02-23 20:12:07 -0800 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2016-02-24 04:13:20 +0000 |
| commit | e26da162b7de08b3918352deff9f5897f1e2cf2a (patch) | |
| tree | a35ef26f0f514f1402b59f2e5dc2fa4996901ad9 /chrome/browser/usb/usb_chooser_bubble_delegate.cc | |
| parent | d0f29740c2894eeb3826140e902968dd14ffb7c7 (diff) | |
| download | chromium_src-e26da162b7de08b3918352deff9f5897f1e2cf2a.zip chromium_src-e26da162b7de08b3918352deff9f5897f1e2cf2a.tar.gz chromium_src-e26da162b7de08b3918352deff9f5897f1e2cf2a.tar.bz2 | |
Add message and Help Center link to the chooser UI
This patch added message "Not seeing your device? Get
help" at the bottom of the chooser UI, and the "Get help"
links to a Help Center URL. The message is added below
the "Connect" and "Cancel" button with a grey separator.
BUG=492204, 583479
Review URL: https://codereview.chromium.org/1661063002
Cr-Commit-Position: refs/heads/master@{#377216}
Diffstat (limited to 'chrome/browser/usb/usb_chooser_bubble_delegate.cc')
| -rw-r--r-- | chrome/browser/usb/usb_chooser_bubble_delegate.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/usb/usb_chooser_bubble_delegate.cc b/chrome/browser/usb/usb_chooser_bubble_delegate.cc index 61549c4..026641d 100644 --- a/chrome/browser/usb/usb_chooser_bubble_delegate.cc +++ b/chrome/browser/usb/usb_chooser_bubble_delegate.cc @@ -13,6 +13,7 @@ #include "chrome/browser/profiles/profile.h" #include "chrome/browser/usb/usb_chooser_context.h" #include "chrome/browser/usb/usb_chooser_context_factory.h" +#include "chrome/common/url_constants.h" #include "components/bubble/bubble_controller.h" #include "content/public/browser/render_frame_host.h" #include "content/public/browser/web_contents.h" @@ -161,6 +162,10 @@ void UsbChooserBubbleDelegate::OnDeviceAdded( } } +GURL UsbChooserBubbleDelegate::GetHelpCenterUrl() const { + return GURL(chrome::kChooserUsbOverviewURL); +} + void UsbChooserBubbleDelegate::OnDeviceRemoved( scoped_refptr<device::UsbDevice> device) { for (auto it = devices_.begin(); it != devices_.end(); ++it) { |
