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

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

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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
« no previous file with comments | « chromeos/network/network_state.h ('k') | chromeos/network/network_state_handler.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/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
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
OLDNEW
« no previous file with comments | « chromeos/network/network_state.h ('k') | chromeos/network/network_state_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698