Commit 69127946 authored by Michael van Ouwerkerk's avatar Michael van Ouwerkerk Committed by Commit Bot

Add tooltip text for Shared Clipboard omnibox icon.

Bug: 1006264
Change-Id: I0b9d02f8bde14958b7ba3b54215ec330af09a9bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1866630Reviewed-by: default avatarRichard Knoll <knollr@chromium.org>
Commit-Queue: Michael van Ouwerkerk <mvanouwerkerk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#706925}
parent 028ae484
......@@ -6690,6 +6690,9 @@ the Bookmarks menu.">
<message name="IDS_CONTENT_CONTEXT_SHARING_SHARED_CLIPBOARD_NOTIFICATION_DESCRIPTION" desc="The description of the notification shown when a clipboard was shared.">
Copied to your clipboard
</message>
<message name="IDS_OMNIBOX_TOOLTIP_SHARED_CLIPBOARD" desc="The tooltip for the shared clipboard omnibox icon.">
Copy to your device
</message>
</if>
<if expr="use_titlecase">
......@@ -6714,6 +6717,9 @@ the Bookmarks menu.">
<message name="IDS_CONTENT_CONTEXT_SHARING_SHARED_CLIPBOARD_NOTIFICATION_DESCRIPTION" desc="In Title Case: The description of the notification shown when a clipboard was shared.">
Copied to Your Clipboard
</message>
<message name="IDS_OMNIBOX_TOOLTIP_SHARED_CLIPBOARD" desc="The tooltip for the shared clipboard omnibox icon.">
Copy to Your Device
</message>
</if>
......
......@@ -11,6 +11,7 @@
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/sharing/sharing_constants.h"
#include "chrome/browser/sharing/sharing_dialog.h"
#include "chrome/grit/generated_resources.h"
#include "components/sync_device_info/device_info.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
......@@ -96,8 +97,7 @@ const gfx::VectorIcon& SharedClipboardUiController::GetVectorIcon() const {
base::string16 SharedClipboardUiController::GetTextForTooltipAndAccessibleName()
const {
// There is no left click dialog and no dialog title for shared clipboard.
return base::string16();
return l10n_util::GetStringUTF16(IDS_OMNIBOX_TOOLTIP_SHARED_CLIPBOARD);
}
SharingFeatureName SharedClipboardUiController::GetFeatureMetricsPrefix()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment