Chromium Code Reviews| Index: chrome/browser/policy/asynchronous_policy_loader.cc |
| diff --git a/chrome/browser/policy/asynchronous_policy_loader.cc b/chrome/browser/policy/asynchronous_policy_loader.cc |
| index ea27bb767dfd4e5bbd9021c310d7b858a1305ae7..b79e0673b1e2126a9609347b016a7b51242ecfa6 100644 |
| --- a/chrome/browser/policy/asynchronous_policy_loader.cc |
| +++ b/chrome/browser/policy/asynchronous_policy_loader.cc |
| @@ -61,9 +61,10 @@ void AsynchronousPolicyLoader::PostUpdatePolicyTask( |
| } |
| void AsynchronousPolicyLoader::UpdatePolicy(DictionaryValue* new_policy_raw) { |
|
jochen (gone - plz use gerrit)
2010/12/10 10:51:21
since this method is protected, and so classes der
danno
2010/12/10 11:05:28
Done.
|
| + scoped_ptr<DictionaryValue> new_policy(new_policy_raw); |
| DCHECK(policy_.get()); |
| - if (!policy_->Equals(new_policy_raw)) { |
| - policy_.reset(new_policy_raw); |
| + if (!policy_->Equals(new_policy.get())) { |
| + policy_.reset(new_policy.release()); |
| // TODO(danno): Change the notification between the provider and the |
| // PrefStore into a notification mechanism, removing the need for the |
| // WeakPtr for the provider. |