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

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

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review changes Created 8 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 984c3bacd54b1f4e3321cbccf882746cc075b8e3..9801e45f1507d64c7904ca0b3fd60c87aa5ea829 100644
--- a/chrome/browser/chromeos/cros/onc_network_parser.h
+++ b/chrome/browser/chromeos/cros/onc_network_parser.h
@@ -14,6 +14,7 @@
#include "base/values.h"
#include "chrome/browser/chromeos/cros/network_parser.h"
#include "chrome/browser/chromeos/cros/network_ui_data.h"
+#include "chromeos/network/onc/onc_constants.h"
namespace base {
class DictionaryValue;
@@ -54,7 +55,7 @@ class OncNetworkParser : public NetworkParser {
Network*);
OncNetworkParser(const base::ListValue& network_configs,
- NetworkUIData::ONCSource onc_source);
+ onc::ONCSource onc_source);
virtual ~OncNetworkParser();
static const EnumMapper<PropertyIndex>* property_mapper();
@@ -85,11 +86,11 @@ class OncNetworkParser : public NetworkParser {
// Expands |value| with user account specific paramaters.
static std::string GetUserExpandedValue(const base::Value& value,
- NetworkUIData::ONCSource source);
+ onc::ONCSource source);
const std::string& parse_error() const { return parse_error_; }
- NetworkUIData::ONCSource onc_source() const { return onc_source_; }
+ onc::ONCSource onc_source() const { return onc_source_; }
protected:
OncNetworkParser();
@@ -181,7 +182,7 @@ class OncNetworkParser : public NetworkParser {
std::string parse_error_;
// Where the ONC blob comes from.
- NetworkUIData::ONCSource onc_source_;
+ onc::ONCSource onc_source_;
scoped_ptr<base::ListValue> network_configs_;

Powered by Google App Engine
This is Rietveld 408576698