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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

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/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 7f988a839516b2c06a9209fbc33258556620e4df..f807e5fbe8f2b97fa703be790d4f24069849a3b9 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -3174,7 +3174,7 @@ void TestingAutomationProvider::SaveTabContents(
namespace {
// Translates a dictionary password to a PasswordForm struct.
-content::PasswordForm GetPasswordFormFromDict(
+autofill::PasswordForm GetPasswordFormFromDict(
const DictionaryValue& password_dict) {
// If the time is specified, change time to the specified time.
@@ -3214,7 +3214,7 @@ content::PasswordForm GetPasswordFormFromDict(
GURL origin_gurl(origin_url_text);
GURL action_target(action_target_text);
- content::PasswordForm password_form;
+ autofill::PasswordForm password_form;
password_form.signon_realm = signon_realm;
password_form.username_value = username_value;
password_form.password_value = password_value;
@@ -3253,7 +3253,7 @@ void TestingAutomationProvider::AddSavedPassword(
return;
}
- content::PasswordForm new_password =
+ autofill::PasswordForm new_password =
GetPasswordFormFromDict(*password_dict);
// Use IMPLICIT_ACCESS since new passwords aren't added in incognito mode.
@@ -3299,7 +3299,7 @@ void TestingAutomationProvider::RemoveSavedPassword(
"Password must include a value for 'signon_realm.'");
return;
}
- content::PasswordForm to_remove =
+ autofill::PasswordForm to_remove =
GetPasswordFormFromDict(*password_dict);
// Use EXPLICIT_ACCESS since passwords can be removed in incognito mode.
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/chrome_notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698