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

Unified Diff: chrome/browser/policy/network_configuration_updater.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
Index: chrome/browser/policy/network_configuration_updater.cc
===================================================================
--- chrome/browser/policy/network_configuration_updater.cc (revision 114539)
+++ chrome/browser/policy/network_configuration_updater.cc (working copy)
@@ -56,8 +56,11 @@
if (*cached_value != new_network_config) {
*cached_value = new_network_config;
- if (!network_library_->LoadOncNetworks(new_network_config, ""))
- LOG(WARNING) << "Network library failed to load ONC configuration.";
+ std::string error;
+ if (!network_library_->LoadOncNetworks(new_network_config, "", &error)) {
+ LOG(WARNING) << "Network library failed to load ONC configuration:"
+ << error;
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698