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

Unified Diff: chromeos/network/onc/onc_translator.h

Issue 552113002: Add ONC 'Source' configuration property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_279351_internet_options_9a
Patch Set: Rebase, Feedback, add *Policy sources Created 6 years, 3 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_translator.h
diff --git a/chromeos/network/onc/onc_translator.h b/chromeos/network/onc/onc_translator.h
index 270247c65c199d7c2a243ef4d6af79f7b5173310..0d3f45e6c7b91e48e5a4c1b842b51c4aee6c9d2e 100644
--- a/chromeos/network/onc/onc_translator.h
+++ b/chromeos/network/onc/onc_translator.h
@@ -7,6 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "chromeos/chromeos_export.h"
+#include "components/onc/onc_constants.h"
namespace base {
class DictionaryValue;
@@ -36,10 +37,12 @@ scoped_ptr<base::DictionaryValue> TranslateONCObjectToShill(
// This function is used to translate network settings coming from Shill to ONC
// before sending them to the UI. The result doesn't have to be valid ONC, but
// only a subset of it and includes only the values that are actually required
-// by the UI.
+// by the UI. If |onc_source| specifies a Device or User policy then the
pneubeck (no reviews) 2014/09/10 10:49:38 As mentioned in the other comment, this leads to t
stevenjb 2014/09/10 17:32:15 Heh, I already jumped to '3' :)
+// 'Source' property of the ONC dictionary will be set accordingly.
CHROMEOS_EXPORT
scoped_ptr<base::DictionaryValue> TranslateShillServiceToONCPart(
const base::DictionaryValue& shill_dictionary,
+ ::onc::ONCSource onc_source,
const OncValueSignature* onc_signature);
} // namespace onc

Powered by Google App Engine
This is Rietveld 408576698