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

Side by Side Diff: ios/web/web_state/js/credential_util.mm

Issue 1456983002: Move JS-related password manager code upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Indent fixed, capitalisation fixed, typo fixed 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ios/web/web_state/js/credential_util.h ('k') | ios/web/web_state/js/credential_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698