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

Side by Side Diff: chromeos/network/onc/onc_utils.cc

Issue 280023003: Implement networkingPrivate.getNetworks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nonchromeos 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
« no previous file with comments | « chromeos/network/network_util.cc ('k') | chromeos/network/shill_property_util.h » ('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/onc/onc_utils.h" 5 #include "chromeos/network/onc/onc_utils.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 if (type == ::onc::network_type::kAllTypes) 655 if (type == ::onc::network_type::kAllTypes)
656 return NetworkTypePattern::Default(); 656 return NetworkTypePattern::Default();
657 if (type == ::onc::network_type::kCellular) 657 if (type == ::onc::network_type::kCellular)
658 return NetworkTypePattern::Cellular(); 658 return NetworkTypePattern::Cellular();
659 if (type == ::onc::network_type::kEthernet) 659 if (type == ::onc::network_type::kEthernet)
660 return NetworkTypePattern::Ethernet(); 660 return NetworkTypePattern::Ethernet();
661 if (type == ::onc::network_type::kVPN) 661 if (type == ::onc::network_type::kVPN)
662 return NetworkTypePattern::VPN(); 662 return NetworkTypePattern::VPN();
663 if (type == ::onc::network_type::kWiFi) 663 if (type == ::onc::network_type::kWiFi)
664 return NetworkTypePattern::WiFi(); 664 return NetworkTypePattern::WiFi();
665 if (type == ::onc::network_type::kWimax)
666 return NetworkTypePattern::Wimax();
667 if (type == ::onc::network_type::kWireless)
668 return NetworkTypePattern::Wireless();
665 NOTREACHED(); 669 NOTREACHED();
666 return NetworkTypePattern::Default(); 670 return NetworkTypePattern::Default();
667 } 671 }
668 672
669 } // namespace onc 673 } // namespace onc
670 } // namespace chromeos 674 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/network_util.cc ('k') | chromeos/network/shill_property_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698