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

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

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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/autocomplete_syncable_service.h" 5 #include "chrome/browser/webdata/autocomplete_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/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/autofill/browser/webdata/autofill_table.h" 10 #include "components/autofill/core/browser/webdata/autofill_table.h"
11 #include "components/autofill/browser/webdata/autofill_webdata_service.h" 11 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
12 #include "components/webdata/common/web_database.h" 12 #include "components/webdata/common/web_database.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "net/base/escape.h" 14 #include "net/base/escape.h"
15 #include "sync/api/sync_error.h" 15 #include "sync/api/sync_error.h"
16 #include "sync/api/sync_error_factory.h" 16 #include "sync/api/sync_error_factory.h"
17 #include "sync/protocol/autofill_specifics.pb.h" 17 #include "sync/protocol/autofill_specifics.pb.h"
18 #include "sync/protocol/sync.pb.h" 18 #include "sync/protocol/sync.pb.h"
19 19
20 using autofill::AutofillChange; 20 using autofill::AutofillChange;
21 using autofill::AutofillChangeList; 21 using autofill::AutofillChangeList;
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 UTF16ToUTF8(entry.key().value()))); 483 UTF16ToUTF8(entry.key().value())));
484 return syncer::SyncData::CreateLocalData(tag, tag, autofill_specifics); 484 return syncer::SyncData::CreateLocalData(tag, tag, autofill_specifics);
485 } 485 }
486 486
487 // static 487 // static
488 std::string AutocompleteSyncableService::KeyToTag(const std::string& name, 488 std::string AutocompleteSyncableService::KeyToTag(const std::string& name,
489 const std::string& value) { 489 const std::string& value) {
490 std::string ns(kAutofillEntryNamespaceTag); 490 std::string ns(kAutofillEntryNamespaceTag);
491 return ns + net::EscapePath(name) + "|" + net::EscapePath(value); 491 return ns + net::EscapePath(name) + "|" + net::EscapePath(value);
492 } 492 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/autocomplete_syncable_service.h ('k') | chrome/browser/webdata/autofill_profile_syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698