| Index: chrome/browser/ui/webui/net_internals/net_internals_ui.cc
|
| diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
|
| index 6bb3a6a03a79d2dedcd66557d5d727ac18baa963..082da88007701c82e8d5c8a0cebb57568ec6c8a6 100644
|
| --- a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
|
| +++ b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
|
| @@ -1488,13 +1488,17 @@ void NetInternalsMessageHandler::OnImportONCFile(const ListValue* list) {
|
| NOTREACHED();
|
| }
|
|
|
| - std::string error;
|
| chromeos::NetworkLibrary* cros_network =
|
| chromeos::CrosLibrary::Get()->GetNetworkLibrary();
|
| - cros_network->LoadOncNetworks(onc_blob, passcode,
|
| - chromeos::NetworkUIData::ONC_SOURCE_USER_IMPORT,
|
| - false, // allow_web_trust_from_policy
|
| - &error);
|
| + bool success = cros_network->LoadOncNetworks(
|
| + onc_blob,
|
| + passcode,
|
| + chromeos::NetworkUIData::ONC_SOURCE_USER_IMPORT,
|
| + false); // allow_web_trust_from_policy
|
| +
|
| + std::string error;
|
| + if (!success)
|
| + error = "Couldn't import ONC";
|
|
|
| // Now that we've added the networks, we need to rescan them so they'll be
|
| // available from the menu more immediately.
|
|
|