| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chromeos/network/certificate_pattern.h" | 5 #include "chromeos/network/certificate_pattern.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 result->push_back(item); | 35 result->push_back(item); |
| 36 } | 36 } |
| 37 return true; | 37 return true; |
| 38 } | 38 } |
| 39 | 39 |
| 40 base::ListValue* CreateListFromStrings( | 40 base::ListValue* CreateListFromStrings( |
| 41 const std::vector<std::string>& strings) { | 41 const std::vector<std::string>& strings) { |
| 42 base::ListValue* new_list = new base::ListValue; | 42 base::ListValue* new_list = new base::ListValue; |
| 43 for (std::vector<std::string>::const_iterator iter = strings.begin(); | 43 for (std::vector<std::string>::const_iterator iter = strings.begin(); |
| 44 iter != strings.end(); ++iter) { | 44 iter != strings.end(); ++iter) { |
| 45 new_list->Append(new StringValue(*iter)); | 45 new_list->Append(new base::StringValue(*iter)); |
| 46 } | 46 } |
| 47 return new_list; | 47 return new_list; |
| 48 } | 48 } |
| 49 | 49 |
| 50 } // namespace | 50 } // namespace |
| 51 | 51 |
| 52 //////////////////////////////////////////////////////////////////////////////// | 52 //////////////////////////////////////////////////////////////////////////////// |
| 53 // IssuerSubjectPattern | 53 // IssuerSubjectPattern |
| 54 IssuerSubjectPattern::IssuerSubjectPattern(const std::string& common_name, | 54 IssuerSubjectPattern::IssuerSubjectPattern(const std::string& common_name, |
| 55 const std::string& locality, | 55 const std::string& locality, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // If we didn't copy anything from the dictionary, then it had better be | 171 // If we didn't copy anything from the dictionary, then it had better be |
| 172 // empty. | 172 // empty. |
| 173 DCHECK(dict.empty() == Empty()); | 173 DCHECK(dict.empty() == Empty()); |
| 174 if (dict.empty() != Empty()) | 174 if (dict.empty() != Empty()) |
| 175 return false; | 175 return false; |
| 176 | 176 |
| 177 return true; | 177 return true; |
| 178 } | 178 } |
| 179 | 179 |
| 180 } // namespace chromeos | 180 } // namespace chromeos |
| OLD | NEW |