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

Side by Side Diff: extensions/common/value_builder.cc

Issue 48643003: Moved extension and value builder code to extensions component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « extensions/common/value_builder.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/common/extensions/value_builder.h" 5 #include "extensions/common/value_builder.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 // DictionaryBuilder 9 // DictionaryBuilder
10 10
11 DictionaryBuilder::DictionaryBuilder() : dict_(new base::DictionaryValue) {} 11 DictionaryBuilder::DictionaryBuilder() : dict_(new base::DictionaryValue) {}
12 12
13 DictionaryBuilder::DictionaryBuilder(const base::DictionaryValue& init) 13 DictionaryBuilder::DictionaryBuilder(const base::DictionaryValue& init)
14 : dict_(init.DeepCopy()) {} 14 : dict_(init.DeepCopy()) {}
15 15
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 list_->Append(in_value.Build().release()); 93 list_->Append(in_value.Build().release());
94 return *this; 94 return *this;
95 } 95 }
96 96
97 ListBuilder& ListBuilder::AppendBoolean(bool in_value) { 97 ListBuilder& ListBuilder::AppendBoolean(bool in_value) {
98 list_->Append(new base::FundamentalValue(in_value)); 98 list_->Append(new base::FundamentalValue(in_value));
99 return *this; 99 return *this;
100 } 100 }
101 101
102 } // namespace extensions 102 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/value_builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698