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

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

Issue 749013003: ONC: Add IPAddressConfigType and NameServersConfigType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A bit more clarification (hopefully) 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
« no previous file with comments | « no previous file | chromeos/network/onc/onc_normalizer.cc » ('j') | chromeos/network/onc/onc_normalizer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_merger.cc
diff --git a/chromeos/network/onc/onc_merger.cc b/chromeos/network/onc/onc_merger.cc
index 32efb0f3056a3ab68577dfb8794d4b7eba77621b..c2af97e800e4945b82ce4f232695b8a36d5ad5f0 100644
--- a/chromeos/network/onc/onc_merger.cc
+++ b/chromeos/network/onc/onc_merger.cc
@@ -369,7 +369,9 @@ class MergeToAugmented : public MergeToEffective {
// This field is not part of the provided ONCSignature, thus it cannot be
// controlled by policy. Return the plain active value instead of an
// augmented dictionary.
- return make_scoped_ptr(values.active_setting->DeepCopy());
+ if (values.active_setting)
+ return make_scoped_ptr(values.active_setting->DeepCopy());
+ return nullptr;
}
// This field is part of the provided ONCSignature, thus it can be
« no previous file with comments | « no previous file | chromeos/network/onc/onc_normalizer.cc » ('j') | chromeos/network/onc/onc_normalizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698