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: extensions/browser/content_verifier.cc

Issue 2783113002: nit: Pass ownership of CVDelegate to ContentVerifier using unique_ptr. (Closed)
Patch Set: Created 3 years, 9 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 | « extensions/browser/content_verifier.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/content_verifier.cc
diff --git a/extensions/browser/content_verifier.cc b/extensions/browser/content_verifier.cc
index fe04423791f8d89ec6dd634ded774e02dba2dd27..c48d7eb254f65cc2e1a0716eb32105065ac740fc 100644
--- a/extensions/browser/content_verifier.cc
+++ b/extensions/browser/content_verifier.cc
@@ -60,15 +60,16 @@ void ContentVerifier::SetObserverForTests(TestObserver* observer) {
g_test_observer = observer;
}
-ContentVerifier::ContentVerifier(content::BrowserContext* context,
- ContentVerifierDelegate* delegate)
+ContentVerifier::ContentVerifier(
+ content::BrowserContext* context,
+ std::unique_ptr<ContentVerifierDelegate> delegate)
: shutdown_(false),
context_(context),
- delegate_(delegate),
+ delegate_(std::move(delegate)),
fetcher_(new ContentHashFetcher(
content::BrowserContext::GetDefaultStoragePartition(context)
->GetURLRequestContext(),
- delegate,
+ delegate_.get(),
base::Bind(&ContentVerifier::OnFetchComplete, this))),
observer_(this),
io_data_(new ContentVerifierIOData) {}
« no previous file with comments | « extensions/browser/content_verifier.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698