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

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

Issue 8883046: Show parse errors in the UI when loading ONC files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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/network_library.h
===================================================================
--- chrome/browser/chromeos/cros/network_library.h (revision 113491)
+++ chrome/browser/chromeos/cros/network_library.h (working copy)
@@ -1789,8 +1789,11 @@
virtual void SwitchToPreferredNetwork() = 0;
// Load networks from an Open Network Configuration blob.
+ // If there was an error, this will return false and |error| will be set to
+ // the error message.
virtual bool LoadOncNetworks(const std::string& onc_blob,
achuithb 2011/12/10 01:18:11 I don't think anybody cares about the return value
kmixter1 2011/12/10 15:13:09 True, though it's inflexible to have errors return
Charlie Lee 2011/12/14 17:02:20 We still use the return value in some cases.
Charlie Lee 2011/12/14 17:02:20 I'd like to keep this for now and fix this for R18
kmixter1 2011/12/14 19:46:38 Fair enough. I think the grd constant makes sense
achuithb 2011/12/14 20:08:03 +1. Before you return true, perhaps set *error. If
- const std::string& passcode) = 0;
+ const std::string& passcode,
+ std::string* error) = 0;
// This sets the active network for the network type. Note: priority order
// is unchanged (i.e. if a wifi network is set to active, but an ethernet

Powered by Google App Engine
This is Rietveld 408576698