@@ -163,7 +163,7 @@ base::OnceClosure Menu::BindSelfToClosure(base::OnceClosure callback) {
163163
164164void Menu::InsertItemAt (int index,
165165 int command_id,
166- const base::string16 & label) {
166+ const std::u16string & label) {
167167 model_->InsertItemAt (index, command_id, label);
168168}
169169
@@ -173,20 +173,20 @@ void Menu::InsertSeparatorAt(int index) {
173173
174174void Menu::InsertCheckItemAt (int index,
175175 int command_id,
176- const base::string16 & label) {
176+ const std::u16string & label) {
177177 model_->InsertCheckItemAt (index, command_id, label);
178178}
179179
180180void Menu::InsertRadioItemAt (int index,
181181 int command_id,
182- const base::string16 & label,
182+ const std::u16string & label,
183183 int group_id) {
184184 model_->InsertRadioItemAt (index, command_id, label, group_id);
185185}
186186
187187void Menu::InsertSubMenuAt (int index,
188188 int command_id,
189- const base::string16 & label,
189+ const std::u16string & label,
190190 Menu* menu) {
191191 menu->parent_ = this ;
192192 model_->InsertSubMenuAt (index, command_id, label, menu->model_ .get ());
@@ -196,15 +196,15 @@ void Menu::SetIcon(int index, const gfx::Image& image) {
196196 model_->SetIcon (index, ui::ImageModel::FromImage (image));
197197}
198198
199- void Menu::SetSublabel (int index, const base::string16 & sublabel) {
199+ void Menu::SetSublabel (int index, const std::u16string & sublabel) {
200200 model_->SetSecondaryLabel (index, sublabel);
201201}
202202
203- void Menu::SetToolTip (int index, const base::string16 & toolTip) {
203+ void Menu::SetToolTip (int index, const std::u16string & toolTip) {
204204 model_->SetToolTip (index, toolTip);
205205}
206206
207- void Menu::SetRole (int index, const base::string16 & role) {
207+ void Menu::SetRole (int index, const std::u16string & role) {
208208 model_->SetRole (index, role);
209209}
210210
@@ -224,19 +224,19 @@ int Menu::GetCommandIdAt(int index) const {
224224 return model_->GetCommandIdAt (index);
225225}
226226
227- base::string16 Menu::GetLabelAt (int index) const {
227+ std::u16string Menu::GetLabelAt (int index) const {
228228 return model_->GetLabelAt (index);
229229}
230230
231- base::string16 Menu::GetSublabelAt (int index) const {
231+ std::u16string Menu::GetSublabelAt (int index) const {
232232 return model_->GetSecondaryLabelAt (index);
233233}
234234
235- base::string16 Menu::GetToolTipAt (int index) const {
235+ std::u16string Menu::GetToolTipAt (int index) const {
236236 return model_->GetToolTipAt (index);
237237}
238238
239- base::string16 Menu::GetAcceleratorTextAt (int index) const {
239+ std::u16string Menu::GetAcceleratorTextAt (int index) const {
240240 ui::Accelerator accelerator;
241241 model_->GetAcceleratorAtWithParams (index, true , &accelerator);
242242 return accelerator.GetShortcutText ();
0 commit comments