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

Unified Diff: chrome/browser/chromeos/cros/onc_network_parser.h

Issue 8804020: Set onc_source UI data parameter when importing ONC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Ken's comments. Created 9 years 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/chromeos/cros/onc_network_parser.h
diff --git a/chrome/browser/chromeos/cros/onc_network_parser.h b/chrome/browser/chromeos/cros/onc_network_parser.h
index ee3bd656d71d66623a0f4edc6cc5f489e2efda09..be3eb45f913e5cf472fac252d5c9e6f35272b521 100644
--- a/chrome/browser/chromeos/cros/onc_network_parser.h
+++ b/chrome/browser/chromeos/cros/onc_network_parser.h
@@ -13,6 +13,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "chrome/browser/chromeos/cros/network_parser.h"
+#include "chrome/browser/chromeos/cros/network_ui_data.h"
namespace base {
class DictionaryValue;
@@ -51,7 +52,8 @@ class OncNetworkParser : public NetworkParser {
const base::Value&,
Network*);
- explicit OncNetworkParser(const std::string& onc_blob);
+ OncNetworkParser(const std::string& onc_blob,
+ NetworkUIData::ONCSource onc_source);
virtual ~OncNetworkParser();
static const EnumMapper<PropertyIndex>* property_mapper();
@@ -135,6 +137,9 @@ class OncNetworkParser : public NetworkParser {
// Error message from the JSON parser, if applicable.
std::string parse_error_;
+ // Where the ONC blob comes from.
+ NetworkUIData::ONCSource onc_source_;
+
scoped_ptr<base::DictionaryValue> root_dict_;
base::ListValue* network_configs_;
base::ListValue* certificates_;

Powered by Google App Engine
This is Rietveld 408576698