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

Unified Diff: base/values.cc

Issue 8851007: WIP / Do not commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/values.h ('k') | base/win/process_monitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.cc
diff --git a/base/values.cc b/base/values.cc
index 8d7ca351d1e9cc6db28489f822a9f341906f04b5..95a2dedd6c83a60380a0377c7589855e98d417cd 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -353,18 +353,6 @@ DictionaryValue::~DictionaryValue() {
Clear();
}
-bool DictionaryValue::GetAsDictionary(DictionaryValue** out_value) {
- if (out_value)
- *out_value = this;
- return true;
-}
-
-bool DictionaryValue::GetAsDictionary(const DictionaryValue** out_value) const {
- if (out_value)
- *out_value = this;
- return true;
-}
-
bool DictionaryValue::HasKey(const std::string& key) const {
DCHECK(IsStringUTF8(key));
ValueMap::const_iterator current_entry = dictionary_.find(key);
@@ -694,6 +682,18 @@ void DictionaryValue::MergeDictionary(const DictionaryValue* dictionary) {
}
}
+bool DictionaryValue::GetAsDictionary(DictionaryValue** out_value) {
+ if (out_value)
+ *out_value = this;
+ return true;
+}
+
+bool DictionaryValue::GetAsDictionary(const DictionaryValue** out_value) const {
+ if (out_value)
+ *out_value = this;
+ return true;
+}
+
DictionaryValue* DictionaryValue::DeepCopy() const {
DictionaryValue* result = new DictionaryValue;
« no previous file with comments | « base/values.h ('k') | base/win/process_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698