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

Unified Diff: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc

Issue 275543005: Use GUID instead of ServicePath in networkingPrivate API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
index 8d18de4075f6a6fff5cb3c3ddcfacb9404d8bb49..03740a98c7de42d92c7855a5684832baa847776b 100644
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
@@ -303,8 +303,10 @@ bool HasPolicyForFavorite(const FavoriteState* favorite,
bool HasPolicyForNetwork(const NetworkState* network,
const PrefService* profile_prefs) {
const FavoriteState* favorite =
- NetworkHandler::Get()->network_state_handler()->GetFavoriteState(
- network->path());
+ NetworkHandler::Get()
+ ->network_state_handler()
+ ->GetFavoriteStateFromServicePath(network->path(),
+ true /* configured_only */);
if (!favorite)
return false;
return HasPolicyForFavorite(favorite, profile_prefs);

Powered by Google App Engine
This is Rietveld 408576698