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

Unified Diff: chromeos/network/onc/onc_merger.cc

Issue 821643005: Provide GUID in ONC for all networks in ManagedNetworkConfigurationHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ONC merger Created 5 years, 11 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: chromeos/network/onc/onc_merger.cc
diff --git a/chromeos/network/onc/onc_merger.cc b/chromeos/network/onc/onc_merger.cc
index c2af97e800e4945b82ce4f232695b8a36d5ad5f0..285e5c2587bb5e098cc6ea63ef6732af90dfce5c 100644
--- a/chromeos/network/onc/onc_merger.cc
+++ b/chromeos/network/onc/onc_merger.cc
@@ -383,8 +383,13 @@ class MergeToAugmented : public MergeToEffective {
if (IsIdentifierField(*signature_, key)) {
// Don't augment the GUID but write the plain value.
if (!effective_value) {
pneubeck (no reviews) 2015/01/14 17:47:10 please simplify/flatten the logic here: if (effe
stevenjb 2015/01/14 18:07:44 Done (without the else's)
pneubeck (no reviews) 2015/01/15 09:45:12 i think you didn't upload the latest patch set.
- LOG(ERROR) << "GUID field has no effective value";
- return nullptr;
+ if (values.active_setting) {
+ // Unmanaged networks have assigned (active) GUID values.
+ effective_value.reset(values.active_setting->DeepCopy());
+ } else {
+ LOG(ERROR) << "GUID field has no effective value";
+ return nullptr;
+ }
}
// DCHECK that all provided GUIDs are identical.

Powered by Google App Engine
This is Rietveld 408576698