| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/favorite_state.h" | 5 #include "chromeos/network/favorite_state.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chromeos/network/network_event_log.h" | 10 #include "chromeos/network/network_event_log.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 return true; | 36 return true; |
| 37 } | 37 } |
| 38 return false; | 38 return false; |
| 39 } | 39 } |
| 40 | 40 |
| 41 bool FavoriteState::IsManaged() const { | 41 bool FavoriteState::IsManaged() const { |
| 42 return onc_source_ == onc::ONC_SOURCE_DEVICE_POLICY || | 42 return onc_source_ == onc::ONC_SOURCE_DEVICE_POLICY || |
| 43 onc_source_ == onc::ONC_SOURCE_USER_POLICY; | 43 onc_source_ == onc::ONC_SOURCE_USER_POLICY; |
| 44 } | 44 } |
| 45 | 45 |
| 46 bool FavoriteState::IsShared() const { | 46 bool FavoriteState::IsPrivate() const { |
| 47 return profile_path_ == NetworkProfileHandler::kSharedProfilePath; | 47 return !profile_path_.empty() && |
| 48 profile_path_ != NetworkProfileHandler::kSharedProfilePath; |
| 48 } | 49 } |
| 49 | 50 |
| 50 } // namespace chromeos | 51 } // namespace chromeos |
| OLD | NEW |