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

Unified Diff: extensions/browser/content_verifier.cc

Issue 2336403002: Fix extension content verification out-of-band hash fetching (Closed)
Patch Set: review feedback Created 4 years, 3 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_hash_fetcher_unittest.cc ('k') | extensions/common/constants.h » ('j') | 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 58a899780bf147f1f955412bf5bd2188b7756194..fe04423791f8d89ec6dd634ded774e02dba2dd27 100644
--- a/extensions/browser/content_verifier.cc
+++ b/extensions/browser/content_verifier.cc
@@ -6,11 +6,14 @@
#include <algorithm>
#include <utility>
+#include <vector>
#include "base/files/file_path.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
+#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/storage_partition.h"
#include "extensions/browser/content_hash_fetcher.h"
#include "extensions/browser/content_hash_reader.h"
#include "extensions/browser/content_verifier_delegate.h"
@@ -63,12 +66,12 @@ ContentVerifier::ContentVerifier(content::BrowserContext* context,
context_(context),
delegate_(delegate),
fetcher_(new ContentHashFetcher(
- context,
+ content::BrowserContext::GetDefaultStoragePartition(context)
+ ->GetURLRequestContext(),
delegate,
base::Bind(&ContentVerifier::OnFetchComplete, this))),
observer_(this),
- io_data_(new ContentVerifierIOData) {
-}
+ io_data_(new ContentVerifierIOData) {}
ContentVerifier::~ContentVerifier() {
}
« no previous file with comments | « extensions/browser/content_hash_fetcher_unittest.cc ('k') | extensions/common/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698