OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/autofill/core/browser/autofill_external_delegate.h" | 5 #include "components/autofill/core/browser/autofill_external_delegate.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 if (should_show_scan_credit_card_) { | 260 if (should_show_scan_credit_card_) { |
261 AutofillMetrics::LogScanCreditCardPromptMetric( | 261 AutofillMetrics::LogScanCreditCardPromptMetric( |
262 identifier == POPUP_ITEM_ID_SCAN_CREDIT_CARD | 262 identifier == POPUP_ITEM_ID_SCAN_CREDIT_CARD |
263 ? AutofillMetrics::SCAN_CARD_ITEM_SELECTED | 263 ? AutofillMetrics::SCAN_CARD_ITEM_SELECTED |
264 : AutofillMetrics::SCAN_CARD_OTHER_ITEM_SELECTED); | 264 : AutofillMetrics::SCAN_CARD_OTHER_ITEM_SELECTED); |
265 } | 265 } |
266 | 266 |
267 manager_->client()->HideAutofillPopup(); | 267 manager_->client()->HideAutofillPopup(); |
268 } | 268 } |
269 | 269 |
| 270 bool AutofillExternalDelegate::GetDeletionConfirmationText( |
| 271 const base::string16& value, |
| 272 int identifier, |
| 273 base::string16* title, |
| 274 base::string16* body) { |
| 275 return manager_->GetDeletionConfirmationText(value, identifier, title, body); |
| 276 } |
| 277 |
270 bool AutofillExternalDelegate::RemoveSuggestion(const base::string16& value, | 278 bool AutofillExternalDelegate::RemoveSuggestion(const base::string16& value, |
271 int identifier) { | 279 int identifier) { |
272 if (identifier > 0) | 280 if (identifier > 0) |
273 return manager_->RemoveAutofillProfileOrCreditCard(identifier); | 281 return manager_->RemoveAutofillProfileOrCreditCard(identifier); |
274 | 282 |
275 if (identifier == POPUP_ITEM_ID_AUTOCOMPLETE_ENTRY) { | 283 if (identifier == POPUP_ITEM_ID_AUTOCOMPLETE_ENTRY) { |
276 manager_->RemoveAutocompleteEntry(query_field_.name, value); | 284 manager_->RemoveAutocompleteEntry(query_field_.name, value); |
277 return true; | 285 return true; |
278 } | 286 } |
279 | 287 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 } | 390 } |
383 } | 391 } |
384 | 392 |
385 #if defined(OS_MACOSX) && !defined(OS_IOS) | 393 #if defined(OS_MACOSX) && !defined(OS_IOS) |
386 void AutofillExternalDelegate::PingRenderer() { | 394 void AutofillExternalDelegate::PingRenderer() { |
387 driver_->PingRenderer(); | 395 driver_->PingRenderer(); |
388 } | 396 } |
389 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | 397 #endif // defined(OS_MACOSX) && !defined(OS_IOS) |
390 | 398 |
391 } // namespace autofill | 399 } // namespace autofill |
OLD | NEW |