summaryrefslogtreecommitdiffstats
path: root/base/values.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-20 20:37:55 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-20 20:37:55 +0000
commit09d7a3aa84aa2b5f71c4ae65cb63c26e81bfb05e (patch)
tree78feb2452b9537b514c13fffa8e849700ac74547 /base/values.cc
parent368be757a0f915b50048dc82e8ed9801c7a8a2b7 (diff)
downloadchromium_src-09d7a3aa84aa2b5f71c4ae65cb63c26e81bfb05e.zip
chromium_src-09d7a3aa84aa2b5f71c4ae65cb63c26e81bfb05e.tar.gz
chromium_src-09d7a3aa84aa2b5f71c4ae65cb63c26e81bfb05e.tar.bz2
Add copy and assignment to FundamentalValue and StringValue.
Also get rid of use of CreateStringValue in chromeos/ directory. This is a retry of r167808, but adding the copy and assign constructors fixes a clang compile error. BUG=160586 Review URL: https://chromiumcodereview.appspot.com/11418048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.cc')
-rw-r--r--base/values.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/base/values.cc b/base/values.cc
index 0b0eb07..459d56f 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -174,7 +174,13 @@ bool Value::Equals(const Value* a, const Value* b) {
return a->Equals(b);
}
-Value::Value(Type type) : type_(type) {
+Value::Value(Type type) : type_(type) {}
+
+Value::Value(const Value& that) : type_(that.type_) {}
+
+Value& Value::operator=(const Value& that) {
+ type_ = that.type_;
+ return *this;
}
///////////////////// FundamentalValue ////////////////////