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

Side by Side Diff: tools/json_schema_compiler/any.cc

Issue 9491002: json_schema_compiler: any, additionalProperties, functions on types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove whitespace Created 8 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "tools/json_schema_compiler/any.h"
6
7 #include "base/logging.h"
8 #include "base/values.h"
9
10 namespace json_schema_compiler {
11 namespace any {
12
13 Any::Any() {}
14
15 Any::~Any() {}
16
17 void Any::CopyFrom(const base::Value& from_value) {
18 value_.reset(from_value.DeepCopy());
not at google - send to devlin 2012/02/28 22:41:17 Is it true that this should be called exactly once
calamity 2012/03/01 04:47:09 Done.
19 }
20
21 const base::Value& Any::value() const {
22 CHECK(value_.get());
23 return *value_;
24 }
25
26 } // namespace any
27 } // namespace json_schema_compiler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698