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

Unified Diff: components/signin/core/browser/signin_header_helper.cc

Issue 2918403009: [Dice] Parse the Dice response header (Closed)
Patch Set: Remove logout url Created 3 years, 6 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: components/signin/core/browser/signin_header_helper.cc
diff --git a/components/signin/core/browser/signin_header_helper.cc b/components/signin/core/browser/signin_header_helper.cc
index 282e06aca5ae497b76694aea599acea01d4fa17a..adaa6dc2195612cec7d7292600392a8ad8536915 100644
--- a/components/signin/core/browser/signin_header_helper.cc
+++ b/components/signin/core/browser/signin_header_helper.cc
@@ -17,7 +17,6 @@
#include "google_apis/gaia/gaia_urls.h"
#include "net/base/escape.h"
#include "net/url_request/url_request.h"
-#include "url/gurl.h"
#if !defined(OS_IOS) && !defined(OS_ANDROID)
#include "components/signin/core/browser/dice_header_helper.h"
@@ -43,6 +42,13 @@ ManageAccountsParams::ManageAccountsParams()
ManageAccountsParams::ManageAccountsParams(const ManageAccountsParams& other) =
default;
+DiceResponseParams::DiceResponseParams() : user_intention(DiceAction::NONE) {}
+
+DiceResponseParams::~DiceResponseParams() {}
+
+DiceResponseParams::DiceResponseParams(const DiceResponseParams& other) =
+ default;
+
bool SettingsAllowSigninCookies(
const content_settings::CookieSettings* cookie_settings) {
GURL gaia_url = GaiaUrls::GetInstance()->gaia_url();
@@ -153,4 +159,10 @@ ManageAccountsParams BuildManageAccountsParams(
return ChromeConnectedHeaderHelper::BuildManageAccountsParams(header_value);
}
+#if !defined(OS_IOS) && !defined(OS_ANDROID)
+DiceResponseParams BuildDiceResponseParams(const std::string& header_value) {
+ return DiceHeaderHelper::BuildDiceResponseParams(header_value);
+}
+#endif
+
} // namespace signin
« no previous file with comments | « components/signin/core/browser/signin_header_helper.h ('k') | components/signin/core/browser/signin_header_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698