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

Unified Diff: chrome/browser/policy/device_management_policy_cache.cc

Issue 6324004: Made return types of various Value::DeepCopy() implementations more specific (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test for covariant return types Created 9 years, 11 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 | « chrome/browser/importer/importer_bridge.cc ('k') | chrome/browser/sync/glue/preference_model_associator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/device_management_policy_cache.cc
diff --git a/chrome/browser/policy/device_management_policy_cache.cc b/chrome/browser/policy/device_management_policy_cache.cc
index ab5dd15ae5920c40f474e2cf5d4946c2875ab7c2..ff072eb150ccdba466aa128378e897c35b829e96 100644
--- a/chrome/browser/policy/device_management_policy_cache.cc
+++ b/chrome/browser/policy/device_management_policy_cache.cc
@@ -135,7 +135,7 @@ bool DeviceManagementPolicyCache::SetPolicy(
DictionaryValue* DeviceManagementPolicyCache::GetPolicy() {
AutoLock lock(lock_);
- return static_cast<DictionaryValue*>(policy_->DeepCopy());
+ return policy_->DeepCopy();
}
void DeviceManagementPolicyCache::SetDeviceUnmanaged(bool is_device_unmanaged) {
« no previous file with comments | « chrome/browser/importer/importer_bridge.cc ('k') | chrome/browser/sync/glue/preference_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698