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

Unified Diff: chrome/browser/policy/asynchronous_policy_loader.h

Issue 8892034: Use base::Passed(scoped_ptr) in policy/ code. (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
Index: chrome/browser/policy/asynchronous_policy_loader.h
diff --git a/chrome/browser/policy/asynchronous_policy_loader.h b/chrome/browser/policy/asynchronous_policy_loader.h
index 63a81f8800968c975bd65cc75867d3f896b3d18b..41ede15dbabb5c48f86c5671a4c93e060f7f9229 100644
--- a/chrome/browser/policy/asynchronous_policy_loader.h
+++ b/chrome/browser/policy/asynchronous_policy_loader.h
@@ -85,8 +85,8 @@ class AsynchronousPolicyLoader
// Replaces the existing policy to value map with a new one, sending
// notification to the observers if there is a policy change. Must be called
// on |origin_loop_| so that it's safe to call back into the provider, which
- // is not thread-safe. Takes ownership of |new_policy|.
- void UpdatePolicy(DictionaryValue* new_policy);
+ // is not thread-safe.
+ void UpdatePolicy(scoped_ptr<DictionaryValue> new_policy);
// Provides the low-level mechanics for loading policy.
scoped_ptr<AsynchronousPolicyProvider::Delegate> delegate_;
« no previous file with comments | « no previous file | chrome/browser/policy/asynchronous_policy_loader.cc » ('j') | chrome/browser/policy/url_blacklist_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698