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

Unified Diff: chrome/browser/policy/url_blacklist_manager.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/url_blacklist_manager.h
diff --git a/chrome/browser/policy/url_blacklist_manager.h b/chrome/browser/policy/url_blacklist_manager.h
index 8233b37fe910bf6b366ee67e1a2cfe6effa468a4..521af2fbdee5f292ef4cefb45cd1a4f4a935109a 100644
--- a/chrome/browser/policy/url_blacklist_manager.h
+++ b/chrome/browser/policy/url_blacklist_manager.h
@@ -109,7 +109,7 @@ class URLBlacklistManager : public content::NotificationObserver {
bool IsURLBlocked(const GURL& url) const;
// Replaces the current blacklist. Must be called on the IO thread.
- void SetBlacklist(URLBlacklist* blacklist);
+ void SetBlacklist(scoped_ptr<URLBlacklist> blacklist);
// Registers the preferences related to blacklisting in the given PrefService.
static void RegisterPrefs(PrefService* pref_service);
@@ -127,7 +127,8 @@ class URLBlacklistManager : public content::NotificationObserver {
// Starts the blacklist update on the IO thread, using the filters in
// |block| and |allow|. Protected for testing.
- void UpdateOnIO(StringVector* block, StringVector* allow);
+ void UpdateOnIO(scoped_ptr<StringVector> block,
+ scoped_ptr<StringVector> allow);
private:
virtual void Observe(int type,

Powered by Google App Engine
This is Rietveld 408576698