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/network_state.h" | 5 #include "chromeos/network/network_state.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
8 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
10 #include "chromeos/network/network_profile_handler.h" | 12 #include "chromeos/network/network_profile_handler.h" |
11 #include "chromeos/network/network_type_pattern.h" | 13 #include "chromeos/network/network_type_pattern.h" |
12 #include "chromeos/network/network_util.h" | 14 #include "chromeos/network/network_util.h" |
13 #include "chromeos/network/onc/onc_utils.h" | 15 #include "chromeos/network/onc/onc_utils.h" |
14 #include "chromeos/network/shill_property_util.h" | 16 #include "chromeos/network/shill_property_util.h" |
15 #include "components/device_event_log/device_event_log.h" | 17 #include "components/device_event_log/device_event_log.h" |
16 #include "third_party/cros_system_api/dbus/service_constants.h" | 18 #include "third_party/cros_system_api/dbus/service_constants.h" |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 return IsCaptivePortalState(shill_properties, false /* log */); | 434 return IsCaptivePortalState(shill_properties, false /* log */); |
433 } | 435 } |
434 | 436 |
435 // static | 437 // static |
436 bool NetworkState::ErrorIsValid(const std::string& error) { | 438 bool NetworkState::ErrorIsValid(const std::string& error) { |
437 // Shill uses "Unknown" to indicate an unset or cleared error state. | 439 // Shill uses "Unknown" to indicate an unset or cleared error state. |
438 return !error.empty() && error != kErrorUnknown; | 440 return !error.empty() && error != kErrorUnknown; |
439 } | 441 } |
440 | 442 |
441 } // namespace chromeos | 443 } // namespace chromeos |
OLD | NEW |