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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc

Issue 2231753002: components: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more call site Created 4 years, 4 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/webdata/autofill_webdata_backend_impl .h" 5 #include "components/autofill/core/browser/webdata/autofill_webdata_backend_impl .h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 } 518 }
519 return WebDatabase::COMMIT_NOT_NEEDED; 519 return WebDatabase::COMMIT_NOT_NEEDED;
520 } 520 }
521 521
522 void AutofillWebDataBackendImpl::DestroyAutofillProfileResult( 522 void AutofillWebDataBackendImpl::DestroyAutofillProfileResult(
523 const WDTypedResult* result) { 523 const WDTypedResult* result) {
524 DCHECK(result->GetType() == AUTOFILL_PROFILES_RESULT); 524 DCHECK(result->GetType() == AUTOFILL_PROFILES_RESULT);
525 const WDResult<std::vector<AutofillProfile*> >* r = 525 const WDResult<std::vector<AutofillProfile*> >* r =
526 static_cast<const WDResult<std::vector<AutofillProfile*> >*>(result); 526 static_cast<const WDResult<std::vector<AutofillProfile*> >*>(result);
527 std::vector<AutofillProfile*> profiles = r->GetValue(); 527 std::vector<AutofillProfile*> profiles = r->GetValue();
528 STLDeleteElements(&profiles); 528 base::STLDeleteElements(&profiles);
529 } 529 }
530 530
531 void AutofillWebDataBackendImpl::DestroyAutofillCreditCardResult( 531 void AutofillWebDataBackendImpl::DestroyAutofillCreditCardResult(
532 const WDTypedResult* result) { 532 const WDTypedResult* result) {
533 DCHECK(result->GetType() == AUTOFILL_CREDITCARDS_RESULT); 533 DCHECK(result->GetType() == AUTOFILL_CREDITCARDS_RESULT);
534 const WDResult<std::vector<CreditCard*> >* r = 534 const WDResult<std::vector<CreditCard*> >* r =
535 static_cast<const WDResult<std::vector<CreditCard*> >*>(result); 535 static_cast<const WDResult<std::vector<CreditCard*> >*>(result);
536 536
537 std::vector<CreditCard*> credit_cards = r->GetValue(); 537 std::vector<CreditCard*> credit_cards = r->GetValue();
538 STLDeleteElements(&credit_cards); 538 base::STLDeleteElements(&credit_cards);
539 } 539 }
540 540
541 } // namespace autofill 541 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698