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

Unified Diff: chrome/browser/ui/webui/signin/inline_login_handler_impl.cc

Issue 646983008: Implement signin using webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed nits and updated histogram Created 6 years, 2 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/ui/webui/signin/inline_login_handler_impl.cc
diff --git a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
index a3d56d65090cab156f1dc4b5e93ec27f8923bb6a..f84ba0feac18674a0e3c5bec88e7f901ed958cc8 100644
--- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
+++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
@@ -378,10 +378,12 @@ void InlineLoginHandlerImpl::CompleteLogin(const base::ListValue* args) {
about_signin_internals->OnAuthenticationResultReceived(
"GAIA Auth Successful");
+ GURL partition_url(switches::IsEnableWebviewBasedSignin() ?
+ "chrome-guest://chrome-signin/?" :
+ chrome::kChromeUIChromeSigninURL);
content::StoragePartition* partition =
content::BrowserContext::GetStoragePartitionForSite(
- contents->GetBrowserContext(),
- GURL(chrome::kChromeUIChromeSigninURL));
+ contents->GetBrowserContext(), partition_url);
SigninClient* signin_client =
ChromeSigninClientFactory::GetForProfile(Profile::FromWebUI(web_ui()));
« no previous file with comments | « chrome/browser/resources/inline_login/new_inline_login.html ('k') | chrome/browser/ui/webui/signin/inline_login_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698