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

Side by Side Diff: chromeos/network/certificate_pattern.cc

Issue 17034006: Add base namespace to more values in sync and elsewhere. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.cc ('k') | chromeos/network/cros_network_functions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.cc ('k') | chromeos/network/cros_network_functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698