Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1626)

Unified Diff: chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc

Issue 2126873003: Change WebBluetooth chooser title to "pair with" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@support_chrome_extension_chooser_title
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc
diff --git a/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc b/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc
index 0998ec107b8b88709dd2cf47526489fa8e206317..82becbc53df2ff78aad6e0358b7f382d168fcf55 100644
--- a/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc
+++ b/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc
@@ -33,6 +33,14 @@ BluetoothChooserController::BluetoothChooserController(
BluetoothChooserController::~BluetoothChooserController() {}
+base::string16 BluetoothChooserController::GetTitle() const {
+ std::pair<base::string16, bool> title_prefix = GetTitlePrefix();
scheib 2016/07/13 18:14:07 BTW, if you were using a tuple to be returned you
+ return l10n_util::GetStringFUTF16(
+ title_prefix.second ? IDS_BLUETOOTH_DEVICE_CHOOSER_PROMPT_ORIGIN
+ : IDS_BLUETOOTH_DEVICE_CHOOSER_PROMPT_EXTENSION_NAME,
+ title_prefix.first);
+}
+
base::string16 BluetoothChooserController::GetOkButtonLabel() const {
return l10n_util::GetStringUTF16(
IDS_BLUETOOTH_DEVICE_CHOOSER_PAIR_BUTTON_TEXT);
« no previous file with comments | « chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h ('k') | chrome/browser/usb/usb_chooser_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698