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

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

Issue 21030006: NetworkState cleanup, pass properties to InitialPropertiesReceived (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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/favorite_state.h ('k') | chromeos/network/managed_state.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 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
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
OLDNEW
« no previous file with comments | « chromeos/network/favorite_state.h ('k') | chromeos/network/managed_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698