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

Unified Diff: components/login/base_screen_handler_utils.h

Issue 1454153002: Revert of This CL replaces e-mail with AccountId on user selection screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « components/login/DEPS ('k') | components/login/base_screen_handler_utils.cc » ('j') | 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 7d884d2d42996a5072d974b6f7b37df173c4c0cd..71d2e7f1687ff6417d0dd839878532f017694c7a 100644
--- a/components/login/base_screen_handler_utils.h
+++ b/components/login/base_screen_handler_utils.h
@@ -14,7 +14,6 @@
#include "base/tuple.h"
#include "base/values.h"
#include "components/login/login_export.h"
-#include "components/signin/core/account_id/account_id.h"
namespace login {
@@ -41,7 +40,6 @@
const base::DictionaryValue** out_value);
bool LOGIN_EXPORT ParseValue(const base::Value* value, StringList* out_value);
bool LOGIN_EXPORT ParseValue(const base::Value* value, String16List* out_value);
-bool LOGIN_EXPORT ParseValue(const base::Value* value, AccountId* out_value);
template <typename T>
inline bool GetArg(const base::ListValue* args, size_t index, T* out_value) {
@@ -56,29 +54,17 @@
base::FundamentalValue LOGIN_EXPORT MakeValue(double v);
base::StringValue LOGIN_EXPORT MakeValue(const std::string& v);
base::StringValue LOGIN_EXPORT MakeValue(const base::string16& v);
-base::StringValue LOGIN_EXPORT MakeValue(const AccountId& v);
template <typename T>
inline const T& MakeValue(const T& v) {
return v;
}
-template <typename T>
-struct ParsedValueContainer {
- T value;
-};
-
-template <>
-struct LOGIN_EXPORT ParsedValueContainer<AccountId> {
- ParsedValueContainer();
- AccountId value = EmptyAccountId();
-};
-
template <typename Arg, size_t index>
typename UnwrapConstRef<Arg>::Type ParseArg(const base::ListValue* args) {
- ParsedValueContainer<typename UnwrapConstRef<Arg>::Type> parsed;
- CHECK(GetArg(args, index, &parsed.value));
- return parsed.value;
+ typename UnwrapConstRef<Arg>::Type parsed;
+ CHECK(GetArg(args, index, &parsed));
+ return parsed;
}
template <typename... Args, size_t... Ns>
« no previous file with comments | « components/login/DEPS ('k') | components/login/base_screen_handler_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698