Index: chromeos/network/network_state.h |
diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h |
index e4d9cce2cc090a730d8431e11f259c54abfcb0c5..518e56845c12c350d9971dd186689dfe2aa7eea3 100644 |
--- a/chromeos/network/network_state.h |
+++ b/chromeos/network/network_state.h |
@@ -126,6 +126,9 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState { |
// Set the GUID. Called exclusively by NetworkStateHandler. |
void SetGuid(const std::string& guid); |
+ // Returns |error_| if valid, otherwise returns |last_error_|. |
+ std::string GetErrorState() const; |
+ |
// Helpers (used e.g. when a state, error, or shill dictionary is cached) |
static bool StateIsConnected(const std::string& connection_state); |
static bool StateIsConnecting(const std::string& connection_state); |