| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/values_util.h" | 5 #include "base/values_util.h" |
| 6 | 6 |
| 7 RefCountedList::RefCountedList(ListValue* list) { | 7 RefCountedList::RefCountedList(ListValue* list) { |
| 8 list_ = list; | 8 list_ = list; |
| 9 } | 9 } |
| 10 | 10 |
| 11 RefCountedList::~RefCountedList() { | 11 RefCountedList::~RefCountedList() { |
| 12 if (list_) | 12 if (list_) |
| 13 delete list_; | 13 delete list_; |
| 14 } | 14 } |
| 15 |
| 16 ListValue* RefCountedList::Get() { |
| 17 return list_; |
| 18 } |
| OLD | NEW |