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

Unified Diff: components/autofill/core/browser/autofill_external_delegate.cc

Issue 1357243003: Content description for settings button in keyboard accessory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lower case 'settings', add comment, elaborate description for translators. Created 5 years, 3 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
« no previous file with comments | « build/ios/grit_whitelist.txt ('k') | components/autofill_strings.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_external_delegate.cc
diff --git a/components/autofill/core/browser/autofill_external_delegate.cc b/components/autofill/core/browser/autofill_external_delegate.cc
index 82b7396c7c8f999ac184d9885014910a9f031e49..c9471f4ccb99e6831eb16d743f454e96767ad42b 100644
--- a/components/autofill/core/browser/autofill_external_delegate.cc
+++ b/components/autofill/core/browser/autofill_external_delegate.cc
@@ -293,8 +293,11 @@ void AutofillExternalDelegate::ApplyAutofillOptions(
}
// Append the 'Chrome Autofill options' menu item;
- suggestions->push_back(Suggestion(
- l10n_util::GetStringUTF16(IDS_AUTOFILL_OPTIONS_POPUP)));
+ // TODO(rouslan): Switch on the platform in the GRD file when keyboard
+ // accessory becomes default on Android.
+ suggestions->push_back(Suggestion(l10n_util::GetStringUTF16(
+ IsKeyboardAccessoryEnabled() ? IDS_AUTOFILL_OPTIONS_CONTENT_DESCRIPTION
+ : IDS_AUTOFILL_OPTIONS_POPUP)));
suggestions->back().frontend_id = POPUP_ITEM_ID_AUTOFILL_OPTIONS;
if (IsKeyboardAccessoryEnabled())
suggestions->back().icon = base::ASCIIToUTF16("settings");
« no previous file with comments | « build/ios/grit_whitelist.txt ('k') | components/autofill_strings.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698