Fixing names of password_manager kEnableManualFallbacksFilling feature.

Fixing  names of password_manager kEnableManualFallbacksFilling feature
as per the naming convention.

Bug: 785953
Change-Id: I4a4baa1649fe9f02c3783a5e4c40bc75e717cc03
Reviewed-on: https://chromium-review.googlesource.com/900566
Reviewed-by: Vaclav Brozek <vabr@chromium.org>
Commit-Queue: NIKHIL SAHNI <nikhil.sahni@samsung.com>
Cr-Commit-Position: refs/heads/master@{#534923}
void PasswordAutofillManager::OnShowManualFallbackSuggestion(
    base::i18n::TextDirection text_direction,
    const gfx::RectF& bounds) {
  if (!autofill_client_ || !ShouldShowManualFallbackForPreLollipop(
                               autofill_client_->GetSyncService()))
    return;
  if (!password_client_ ||
      !password_client_->IsFillingFallbackEnabledForCurrentPage())
    return;
  std::vector<autofill::Suggestion> suggestions;
  autofill::Suggestion all_saved_passwords(
      l10n_util::GetStringUTF8(IDS_AUTOFILL_SHOW_ALL_SAVED_FALLBACK),
      std::string(), std::string(),
      autofill::POPUP_ITEM_ID_ALL_SAVED_PASSWORDS_ENTRY);
  suggestions.push_back(all_saved_passwords);

  show_all_saved_passwords_shown_context_ =
      metrics_util::SHOW_ALL_SAVED_PASSWORDS_CONTEXT_MANUAL_FALLBACK;
  metrics_util::LogContextOfShowAllSavedPasswordsShown(
      show_all_saved_passwords_shown_context_);

  if (base::FeatureList::IsEnabled(
          password_manager::features::kEnableManualFallbacksGeneration) &&
      password_manager_util::GetPasswordSyncState(
          autofill_client_->GetSyncService()) == SYNCING_NORMAL_ENCRYPTION) {
    AddSimpleSuggestionWithSeparatorOnTop(
        IDS_AUTOFILL_GENERATE_PASSWORD_FALLBACK,
        autofill::POPUP_ITEM_ID_GENERATE_PASSWORD_ENTRY, &suggestions);
  }
  autofill_client_->ShowAutofillPopup(bounds, text_direction, suggestions,
                                      weak_ptr_factory_.GetWeakPtr());
}

void PasswordAutofillManager::OnShowManualFallbackSuggestion(
    base::i18n::TextDirection text_direction,
    const gfx::RectF& bounds) {
  if (!autofill_client_ || !ShouldShowManualFallbackForPreLollipop(
                               autofill_client_->GetSyncService()))
    return;
  if (!password_client_ ||
      !password_client_->IsFillingFallbackEnabledForCurrentPage())
    return;
  std::vector<autofill::Suggestion> suggestions;
  autofill::Suggestion all_saved_passwords(
      l10n_util::GetStringUTF8(IDS_AUTOFILL_SHOW_ALL_SAVED_FALLBACK),
      std::string(), std::string(),
      autofill::POPUP_ITEM_ID_ALL_SAVED_PASSWORDS_ENTRY);
  suggestions.push_back(all_saved_passwords);

  show_all_saved_passwords_shown_context_ =
      metrics_util::SHOW_ALL_SAVED_PASSWORDS_CONTEXT_MANUAL_FALLBACK;
  metrics_util::LogContextOfShowAllSavedPasswordsShown(
      show_all_saved_passwords_shown_context_);

  if (base::FeatureList::IsEnabled(
          password_manager::features::kEnableManualFallbacksGeneration) &&
      password_manager_util::GetPasswordSyncState(
          autofill_client_->GetSyncService()) == SYNCING_NORMAL_ENCRYPTION) {
    AddSimpleSuggestionWithSeparatorOnTop(
        IDS_AUTOFILL_GENERATE_PASSWORD_FALLBACK,
        autofill::POPUP_ITEM_ID_GENERATE_PASSWORD_ENTRY, &suggestions);
  }
  autofill_client_->ShowAutofillPopup(bounds, text_direction, suggestions,
                                      weak_ptr_factory_.GetWeakPtr());
}
