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

Unified Diff: chromeos/network/network_util.h

Issue 1043343002: Use networkingPrivate.startConnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_430115_internet_options_cellular
Patch Set: Separate out logic and use last_error Created 5 years, 9 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/network_util.h
diff --git a/chromeos/network/network_util.h b/chromeos/network/network_util.h
index f07fdaff6d152c33254195128839e49c4ffbcfe6..93de52ad3ef4b687885320883c5201092621db4f 100644
--- a/chromeos/network/network_util.h
+++ b/chromeos/network/network_util.h
@@ -19,6 +19,7 @@
#include "base/time/time.h"
#include "base/values.h"
#include "chromeos/chromeos_export.h"
+#include "components/onc/onc_constants.h"
namespace base {
class ListValue;
@@ -110,6 +111,11 @@ CHROMEOS_EXPORT scoped_ptr<base::ListValue> TranslateNetworkListToONC(
int limit,
bool debugging_properties);
+CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue> TranslateShillPropertiesToONC(
+ const std::string& service_path,
+ const base::DictionaryValue& shill_properties,
+ ::onc::ONCSource onc_source);
+
// Returns the Shill type corresponding to ONC |type| or an empty string if
// there is no match. Only valid for ethernet, wifi, wimax, cellular, and vpn.
CHROMEOS_EXPORT std::string TranslateONCTypeToShill(const std::string& type);

Powered by Google App Engine
This is Rietveld 408576698