summaryrefslogtreecommitdiffstats
path: root/rlz
diff options
context:
space:
mode:
authorestade <estade@chromium.org>2015-05-22 19:42:09 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-23 02:42:38 +0000
commit6e04d5002ba4cff956df7f246c8bf3bfe0c8a6f2 (patch)
tree7f18aedd2af7cb1877ba82ffa3f5a52978505fad /rlz
parent06ef720caae28f262ec40804b85838a3fa1654a1 (diff)
downloadchromium_src-6e04d5002ba4cff956df7f246c8bf3bfe0c8a6f2.zip
chromium_src-6e04d5002ba4cff956df7f246c8bf3bfe0c8a6f2.tar.gz
chromium_src-6e04d5002ba4cff956df7f246c8bf3bfe0c8a6f2.tar.bz2
Make DictionaryValue::DeepCopyWithoutEmptyChildren return a scoped_ptr
BUG=none Review URL: https://codereview.chromium.org/1150863002 Cr-Commit-Position: refs/heads/master@{#331223}
Diffstat (limited to 'rlz')
-rw-r--r--rlz/chromeos/lib/rlz_value_store_chromeos.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/rlz/chromeos/lib/rlz_value_store_chromeos.cc b/rlz/chromeos/lib/rlz_value_store_chromeos.cc
index 45f2500..b02ce34 100644
--- a/rlz/chromeos/lib/rlz_value_store_chromeos.cc
+++ b/rlz/chromeos/lib/rlz_value_store_chromeos.cc
@@ -231,8 +231,8 @@ void RlzValueStoreChromeOS::WriteStore() {
std::string json_data;
JSONStringValueSerializer serializer(&json_data);
serializer.set_pretty_print(true);
- scoped_ptr<base::DictionaryValue> copy(
- rlz_store_->DeepCopyWithoutEmptyChildren());
+ scoped_ptr<base::DictionaryValue> copy =
+ rlz_store_->DeepCopyWithoutEmptyChildren();
if (!serializer.Serialize(*copy.get())) {
LOG(ERROR) << "Failed to serialize RLZ data";
NOTREACHED();