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

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

Issue 300623008: Move NetworkTypePattern to its own file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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/network_util.h" 5 #include "chromeos/network/network_util.h"
6 6
7 #include "base/strings/string_tokenizer.h" 7 #include "base/strings/string_tokenizer.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "chromeos/network/favorite_state.h" 10 #include "chromeos/network/favorite_state.h"
11 #include "chromeos/network/network_state.h" 11 #include "chromeos/network/network_state.h"
12 #include "chromeos/network/network_state_handler.h" 12 #include "chromeos/network/network_state_handler.h"
13 #include "chromeos/network/onc/onc_signature.h" 13 #include "chromeos/network/onc/onc_signature.h"
14 #include "chromeos/network/onc/onc_translator.h" 14 #include "chromeos/network/onc/onc_translator.h"
15 #include "chromeos/network/shill_property_util.h"
16 #include "third_party/cros_system_api/dbus/service_constants.h" 15 #include "third_party/cros_system_api/dbus/service_constants.h"
17 16
18 namespace chromeos { 17 namespace chromeos {
19 18
20 WifiAccessPoint::WifiAccessPoint() 19 WifiAccessPoint::WifiAccessPoint()
21 : signal_strength(0), 20 : signal_strength(0),
22 signal_to_noise(0), 21 signal_to_noise(0),
23 channel(0) { 22 channel(0) {
24 } 23 }
25 24
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 ++it) { 178 ++it) {
180 scoped_ptr<base::DictionaryValue> onc_dictionary = 179 scoped_ptr<base::DictionaryValue> onc_dictionary =
181 TranslateFavoriteStateToONC(*it); 180 TranslateFavoriteStateToONC(*it);
182 network_properties_list->Append(onc_dictionary.release()); 181 network_properties_list->Append(onc_dictionary.release());
183 } 182 }
184 return network_properties_list.Pass(); 183 return network_properties_list.Pass();
185 } 184 }
186 185
187 } // namespace network_util 186 } // namespace network_util
188 } // namespace chromeos 187 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698