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 "ios/web/web_state/js/credential_util.h" | 5 #include "ios/web/public/web_state/js/credential_util.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "ios/web/public/web_state/credential.h" | 11 #include "ios/web/public/web_state/credential.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 break; | 97 break; |
98 default: | 98 default: |
99 NOTREACHED(); | 99 NOTREACHED(); |
100 } | 100 } |
101 value->SetString("id", credential.id); | 101 value->SetString("id", credential.id); |
102 value->SetString("name", credential.name); | 102 value->SetString("name", credential.name); |
103 value->SetString("avatarURL", credential.avatar_url.spec()); | 103 value->SetString("avatarURL", credential.avatar_url.spec()); |
104 } | 104 } |
105 | 105 |
106 } // web | 106 } // web |
OLD | NEW |