| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/signin/core/account_id/account_id.h" | 5 #include "components/signin/core/account_id/account_id.h" |
| 6 | 6 |
| 7 #include <functional> | 7 #include <functional> |
| 8 | 8 |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
| 12 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 13 #include "base/values.h" | 14 #include "base/values.h" |
| 14 #include "google_apis/gaia/gaia_auth_util.h" | 15 #include "google_apis/gaia/gaia_auth_util.h" |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 // Known account types. | 19 // Known account types. |
| 19 const char kGoogle[] = "google"; | 20 const char kGoogle[] = "google"; |
| 20 | 21 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 return AccountId::EmptyAccountId::GetInstance()->user_id; | 190 return AccountId::EmptyAccountId::GetInstance()->user_id; |
| 190 } | 191 } |
| 191 | 192 |
| 192 namespace BASE_HASH_NAMESPACE { | 193 namespace BASE_HASH_NAMESPACE { |
| 193 | 194 |
| 194 std::size_t hash<AccountId>::operator()(const AccountId& user_id) const { | 195 std::size_t hash<AccountId>::operator()(const AccountId& user_id) const { |
| 195 return hash<std::string>()(user_id.GetUserEmail()); | 196 return hash<std::string>()(user_id.GetUserEmail()); |
| 196 } | 197 } |
| 197 | 198 |
| 198 } // namespace BASE_HASH_NAMESPACE | 199 } // namespace BASE_HASH_NAMESPACE |
| OLD | NEW |