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

Unified Diff: chrome/browser/sync/glue/password_model_associator.h

Issue 23742004: Move PasswordForm from //content to //autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_password_form_conversion_utils
Patch Set: Rebase Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/password_model_associator.h
diff --git a/chrome/browser/sync/glue/password_model_associator.h b/chrome/browser/sync/glue/password_model_associator.h
index 38effd60efc879eecc7023ea8f8d29e801d01651..ea0fc4a951369e87d664461d51511261bf436a60 100644
--- a/chrome/browser/sync/glue/password_model_associator.h
+++ b/chrome/browser/sync/glue/password_model_associator.h
@@ -20,12 +20,12 @@
class PasswordStore;
class ProfileSyncService;
-namespace base {
-class MessageLoop;
+namespace autofill {
+struct PasswordForm;
}
-namespace content {
-struct PasswordForm;
+namespace base {
+class MessageLoop;
}
namespace syncer {
@@ -45,7 +45,7 @@ extern const char kPasswordTag[];
class PasswordModelAssociator
: public PerDataTypeAssociatorInterface<std::string, std::string> {
public:
- typedef std::vector<content::PasswordForm> PasswordVector;
+ typedef std::vector<autofill::PasswordForm> PasswordVector;
static syncer::ModelType model_type() { return syncer::PASSWORDS; }
PasswordModelAssociator(ProfileSyncService* sync_service,
@@ -101,7 +101,7 @@ class PasswordModelAssociator
const PasswordVector* updated_passwords,
const PasswordVector* deleted_passwords);
- static std::string MakeTag(const content::PasswordForm& password);
+ static std::string MakeTag(const autofill::PasswordForm& password);
static std::string MakeTag(const sync_pb::PasswordSpecificsData& password);
static std::string MakeTag(const std::string& origin_url,
const std::string& username_element,
@@ -110,12 +110,12 @@ class PasswordModelAssociator
const std::string& signon_realm);
static void CopyPassword(const sync_pb::PasswordSpecificsData& password,
- content::PasswordForm* new_password);
+ autofill::PasswordForm* new_password);
static bool MergePasswords(const sync_pb::PasswordSpecificsData& password,
- const content::PasswordForm& password_form,
- content::PasswordForm* new_password);
- static void WriteToSyncNode(const content::PasswordForm& password_form,
+ const autofill::PasswordForm& password_form,
+ autofill::PasswordForm* new_password);
+ static void WriteToSyncNode(const autofill::PasswordForm& password_form,
syncer::WriteNode* node);
private:
« no previous file with comments | « chrome/browser/sync/glue/password_change_processor.cc ('k') | chrome/browser/sync/glue/password_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698