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

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

Issue 12770011: Remove a few chrome dependencies of c/b/webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win compiling 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/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/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/webdata/autofill_table.h" 10 #include "chrome/browser/webdata/autofill_table.h"
12 #include "chrome/browser/webdata/web_data_service.h" 11 #include "chrome/browser/webdata/web_data_service.h"
13 #include "chrome/browser/webdata/web_database.h" 12 #include "chrome/browser/webdata/web_database.h"
14 #include "chrome/common/chrome_notification_types.h" 13 #include "chrome/common/chrome_notification_types.h"
15 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
16 #include "content/public/browser/notification_service.h" 15 #include "content/public/browser/notification_service.h"
17 #include "net/base/escape.h" 16 #include "net/base/escape.h"
18 #include "sync/api/sync_error.h" 17 #include "sync/api/sync_error.h"
19 #include "sync/api/sync_error_factory.h" 18 #include "sync/api/sync_error_factory.h"
20 #include "sync/protocol/autofill_specifics.pb.h" 19 #include "sync/protocol/autofill_specifics.pb.h"
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 UTF16ToUTF8(entry.key().value()))); 477 UTF16ToUTF8(entry.key().value())));
479 return syncer::SyncData::CreateLocalData(tag, tag, autofill_specifics); 478 return syncer::SyncData::CreateLocalData(tag, tag, autofill_specifics);
480 } 479 }
481 480
482 // static 481 // static
483 std::string AutocompleteSyncableService::KeyToTag(const std::string& name, 482 std::string AutocompleteSyncableService::KeyToTag(const std::string& name,
484 const std::string& value) { 483 const std::string& value) {
485 std::string ns(kAutofillEntryNamespaceTag); 484 std::string ns(kAutofillEntryNamespaceTag);
486 return ns + net::EscapePath(name) + "|" + net::EscapePath(value); 485 return ns + net::EscapePath(name) + "|" + net::EscapePath(value);
487 } 486 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/DEPS ('k') | chrome/browser/webdata/autofill_profile_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698