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

Unified Diff: chrome/browser/ui/webui/net_internals_ui.cc

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
« no previous file with comments | « chrome/browser/resources/net_internals/chromeos_view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/net_internals_ui.cc
===================================================================
--- chrome/browser/ui/webui/net_internals_ui.cc (revision 114539)
+++ chrome/browser/ui/webui/net_internals_ui.cc (working copy)
@@ -1295,10 +1295,11 @@
NOTREACHED();
}
- const bool success = chromeos::CrosLibrary::Get()->GetNetworkLibrary()->
- LoadOncNetworks(onc_blob, passcode);
+ std::string error;
+ chromeos::CrosLibrary::Get()->GetNetworkLibrary()->
+ LoadOncNetworks(onc_blob, passcode, &error);
SendJavascriptCommand("receivedONCFileParse",
- Value::CreateBooleanValue(success));
+ Value::CreateStringValue(error));
}
#endif
« no previous file with comments | « chrome/browser/resources/net_internals/chromeos_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698