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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/location.h" 7 #include "base/location.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/autofill/autofill_profile.h" 10 #include "chrome/browser/autofill/autofill_profile.h"
11 #include "chrome/browser/autofill/form_group.h" 11 #include "chrome/browser/autofill/form_group.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/sync/api/sync_error.h" 13 #include "chrome/browser/sync/api/sync_error.h"
14 #include "chrome/browser/webdata/autofill_table.h" 14 #include "chrome/browser/webdata/autofill_table.h"
15 #include "chrome/browser/webdata/web_data_service.h" 15 #include "chrome/browser/webdata/web_data_service.h"
16 #include "chrome/browser/webdata/web_database.h" 16 #include "chrome/browser/webdata/web_database.h"
17 #include "chrome/common/chrome_notification_types.h" 17 #include "chrome/common/chrome_notification_types.h"
18 #include "chrome/common/guid.h" 18 #include "chrome/common/guid.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/notification_details.h" 20 #include "content/public/browser/notification_details.h"
21 #include "content/public/browser/notification_source.h" 21 #include "content/public/browser/notification_source.h"
22 22
23 using content::BrowserThread;
24
23 namespace { 25 namespace {
24 26
25 // Helper to compare the local value and cloud value of a field, merge into 27 // Helper to compare the local value and cloud value of a field, merge into
26 // the local value if they differ, and return whether the merge happened. 28 // the local value if they differ, and return whether the merge happened.
27 bool MergeField(FormGroup* form_group, 29 bool MergeField(FormGroup* form_group,
28 AutofillFieldType field_type, 30 AutofillFieldType field_type,
29 const std::string& specifics_field) { 31 const std::string& specifics_field) {
30 if (UTF16ToUTF8(form_group->GetInfo(field_type)) == specifics_field) 32 if (UTF16ToUTF8(form_group->GetInfo(field_type)) == specifics_field)
31 return false; 33 return false;
32 form_group->SetInfo(field_type, UTF8ToUTF16(specifics_field)); 34 form_group->SetInfo(field_type, UTF8ToUTF16(specifics_field));
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 } 414 }
413 415
414 AutofillTable* AutofillProfileSyncableService::GetAutofillTable() const { 416 AutofillTable* AutofillProfileSyncableService::GetAutofillTable() const {
415 return web_data_service_->GetDatabase()->GetAutofillTable(); 417 return web_data_service_->GetDatabase()->GetAutofillTable();
416 } 418 }
417 419
418 AutofillProfileSyncableService::DataBundle::DataBundle() {} 420 AutofillProfileSyncableService::DataBundle::DataBundle() {}
419 421
420 AutofillProfileSyncableService::DataBundle::~DataBundle() { 422 AutofillProfileSyncableService::DataBundle::~DataBundle() {
421 } 423 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698