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

Unified Diff: base/values.cc

Issue 7218073: Explicitly ShutdownOnUIThread the HostContentSettingsMap when destroying the Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/values.h ('k') | chrome/browser/content_settings/content_settings_mock_provider.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 0f30e379eb3301d915c0b06d1c78066fa993f10f..adfc9a8c7c10f100f23461cf93f75bc2cd47f836 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -123,6 +123,10 @@ bool Value::GetAsList(ListValue** out_value) {
return false;
}
+bool Value::GetAsList(const ListValue** out_value) const {
+ return false;
+}
+
Value* Value::DeepCopy() const {
// This method should only be getting called for null Values--all subclasses
// need to provide their own implementation;.
@@ -866,6 +870,12 @@ bool ListValue::GetAsList(ListValue** out_value) {
return true;
}
+bool ListValue::GetAsList(const ListValue** out_value) const {
+ if (out_value)
+ *out_value = this;
+ return true;
+}
+
ListValue* ListValue::DeepCopy() const {
ListValue* result = new ListValue;
« no previous file with comments | « base/values.h ('k') | chrome/browser/content_settings/content_settings_mock_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698