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

Side by Side Diff: components/wifi/network_properties.cc

Issue 368233004: ONC: Cleanup client certificate related fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation on Win/Mac. Created 6 years, 5 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 | « components/onc/onc_constants.cc ('k') | components/wifi/wifi_service_mac.mm » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/wifi/network_properties.h" 5 #include "components/wifi/network_properties.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "components/onc/onc_constants.h" 10 #include "components/onc/onc_constants.h"
11 11
12 namespace wifi { 12 namespace wifi {
13 13
14 NetworkProperties::NetworkProperties() 14 NetworkProperties::NetworkProperties()
15 : connection_state(onc::connection_state::kNotConnected), 15 : connection_state(onc::connection_state::kNotConnected),
16 security(onc::wifi::kNone), 16 security(onc::wifi::kSecurityNone),
17 signal_strength(0), 17 signal_strength(0),
18 auto_connect(false), 18 auto_connect(false),
19 frequency(kFrequencyUnknown) { 19 frequency(kFrequencyUnknown) {
20 } 20 }
21 21
22 NetworkProperties::~NetworkProperties() { 22 NetworkProperties::~NetworkProperties() {
23 } 23 }
24 24
25 scoped_ptr<base::DictionaryValue> NetworkProperties::ToValue( 25 scoped_ptr<base::DictionaryValue> NetworkProperties::ToValue(
26 bool network_list) const { 26 bool network_list) const {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 if (l.type == r.type) 112 if (l.type == r.type)
113 return l.guid < r.guid; 113 return l.guid < r.guid;
114 if (l.type == onc::network_type::kEthernet) 114 if (l.type == onc::network_type::kEthernet)
115 return true; 115 return true;
116 if (r.type == onc::network_type::kEthernet) 116 if (r.type == onc::network_type::kEthernet)
117 return false; 117 return false;
118 return l.type > r.type; 118 return l.type > r.type;
119 } 119 }
120 120
121 } // namespace wifi 121 } // namespace wifi
OLDNEW
« no previous file with comments | « components/onc/onc_constants.cc ('k') | components/wifi/wifi_service_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698