Commit ee4bca9a authored by guohui@chromium.org's avatar guohui@chromium.org

Do not prefill username when adding an account

BUG=

Review URL: https://codereview.chromium.org/132353003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244024 0039d316-1c4b-4281-b951-d872f2087c98
parent 5f96f5a6
...@@ -66,10 +66,12 @@ void InlineLoginHandlerImpl::SetExtraInitParams(base::DictionaryValue& params) { ...@@ -66,10 +66,12 @@ void InlineLoginHandlerImpl::SetExtraInitParams(base::DictionaryValue& params) {
params.SetString("continueUrl", params.SetString("continueUrl",
signin::GetLandingURL("source", static_cast<int>(source)).spec()); signin::GetLandingURL("source", static_cast<int>(source)).spec());
std::string last_email = Profile::FromWebUI(web_ui())->GetPrefs()->GetString( if (source != signin::SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT) {
prefs::kGoogleServicesLastUsername); std::string last_email = Profile::FromWebUI(web_ui())->GetPrefs()->
GetString(prefs::kGoogleServicesLastUsername);
if (!last_email.empty()) if (!last_email.empty())
params.SetString("email", last_email); params.SetString("email", last_email);
}
std::string frame_url; std::string frame_url;
net::GetValueForKeyInQuery(current_url, "frameUrl", &frame_url); net::GetValueForKeyInQuery(current_url, "frameUrl", &frame_url);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment