Chromium Code Reviews| 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); |