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

Unified Diff: chrome/browser/chromeos/policy/network_configuration_updater_impl_cros_unittest.cc

Issue 21030009: Make element removal methods in DictionaryValue and ListValue take scoped_ptr's as outparams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 7 years, 4 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: chrome/browser/chromeos/policy/network_configuration_updater_impl_cros_unittest.cc
diff --git a/chrome/browser/chromeos/policy/network_configuration_updater_impl_cros_unittest.cc b/chrome/browser/chromeos/policy/network_configuration_updater_impl_cros_unittest.cc
index b32dee12bc7c3d061ac952f877e258adce8a3f1a..620871118e2f678a4920c6801734e3d23ab13829 100644
--- a/chrome/browser/chromeos/policy/network_configuration_updater_impl_cros_unittest.cc
+++ b/chrome/browser/chromeos/policy/network_configuration_updater_impl_cros_unittest.cc
@@ -107,20 +107,20 @@ class NetworkConfigurationUpdaterTest : public testing::Test {
scoped_ptr<base::DictionaryValue> fake_toplevel_onc =
onc::ReadDictionaryFromJson(kFakeONC);
- base::Value* network_configs_value = NULL;
+ scoped_ptr<base::Value> network_configs_value;
base::ListValue* network_configs = NULL;
fake_toplevel_onc->RemoveWithoutPathExpansion(
onc::toplevel_config::kNetworkConfigurations,
&network_configs_value);
- network_configs_value->GetAsList(&network_configs);
+ network_configs_value.release()->GetAsList(&network_configs);
fake_network_configs_.reset(network_configs);
- base::Value* certs_value = NULL;
+ scoped_ptr<base::Value> certs_value;
base::ListValue* certs = NULL;
fake_toplevel_onc->RemoveWithoutPathExpansion(
onc::toplevel_config::kCertificates,
&certs_value);
- certs_value->GetAsList(&certs);
+ certs_value.release()->GetAsList(&certs);
fake_certificates_.reset(certs);
}

Powered by Google App Engine
This is Rietveld 408576698