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

Unified Diff: components/login/base_screen_handler_utils.h

Issue 1021383002: cros: Transfer auth cookies for SAML webview sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment Created 5 years, 9 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/login/base_screen_handler_utils.h
diff --git a/components/login/base_screen_handler_utils.h b/components/login/base_screen_handler_utils.h
index 63e551296a53a77ed4136cc364e6130ba3d09c7d..c2b89719d6ddc50e792c5107edeb698a0e70b4c0 100644
--- a/components/login/base_screen_handler_utils.h
+++ b/components/login/base_screen_handler_utils.h
@@ -122,6 +122,25 @@ void CallbackWrapper4(base::Callback<void(A1, A2, A3, A4)> callback,
callback.Run(arg1, arg2, arg3, arg4);
}
+template <typename A1, typename A2, typename A3, typename A4, typename A5>
+void CallbackWrapper5(base::Callback<void(A1, A2, A3, A4, A5)> callback,
+ const base::ListValue* args) {
+ DCHECK(args);
+ DCHECK_EQ(5u, args->GetSize());
+ typename UnwrapConstRef<A1>::Type arg1;
+ typename UnwrapConstRef<A2>::Type arg2;
+ typename UnwrapConstRef<A3>::Type arg3;
+ typename UnwrapConstRef<A4>::Type arg4;
+ typename UnwrapConstRef<A5>::Type arg5;
+ if (!GetArg(args, 0, &arg1) || !GetArg(args, 1, &arg2) ||
+ !GetArg(args, 2, &arg3) || !GetArg(args, 3, &arg4) ||
+ !GetArg(args, 4, &arg5)) {
+ NOTREACHED();
+ return;
+ }
+ callback.Run(arg1, arg2, arg3, arg4, arg5);
+}
+
} // namespace login
#endif // COMPONENTS_LOGIN_BASE_SCREEN_HANDLER_UTILS_H_
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698