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

Side by Side Diff: components/autofill/core/browser/autofill_external_delegate.cc

Issue 1134793004: Autofill item deletion on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 7 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_external_delegate.h ('k') | components/autofill/core/browser/autofill_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698