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

Side by Side Diff: chrome/browser/webdata/autofill_profile_syncable_service.cc

Issue 12543034: Move creation of the various WebDatabaseTable types out of WebDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows release builds (COMDAT folding combined static functions being used for keys. Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/webdata/autofill_profile_syncable_service.h" 5 #include "chrome/browser/webdata/autofill_profile_syncable_service.h"
6 6
7 #include "base/guid.h" 7 #include "base/guid.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 } 539 }
540 540
541 bool AutofillProfileSyncableService::MergeProfile( 541 bool AutofillProfileSyncableService::MergeProfile(
542 const AutofillProfile& merge_from, 542 const AutofillProfile& merge_from,
543 AutofillProfile* merge_into) { 543 AutofillProfile* merge_into) {
544 merge_into->OverwriteWithOrAddTo(merge_from); 544 merge_into->OverwriteWithOrAddTo(merge_from);
545 return (merge_into->Compare(merge_from) != 0); 545 return (merge_into->Compare(merge_from) != 0);
546 } 546 }
547 547
548 AutofillTable* AutofillProfileSyncableService::GetAutofillTable() const { 548 AutofillTable* AutofillProfileSyncableService::GetAutofillTable() const {
549 return web_data_service_->GetDatabase()->GetAutofillTable(); 549 return AutofillTable::FromWebDatabase(web_data_service_->GetDatabase());
550 } 550 }
551 551
552 AutofillProfileSyncableService::DataBundle::DataBundle() {} 552 AutofillProfileSyncableService::DataBundle::DataBundle() {}
553 553
554 AutofillProfileSyncableService::DataBundle::~DataBundle() { 554 AutofillProfileSyncableService::DataBundle::~DataBundle() {
555 } 555 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/autocomplete_syncable_service.cc ('k') | chrome/browser/webdata/autofill_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698