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

Unified Diff: extensions/browser/content_hash_fetcher.cc

Issue 1864583006: Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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/api_unittest.cc ('k') | extensions/browser/extensions_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/content_hash_fetcher.cc
diff --git a/extensions/browser/content_hash_fetcher.cc b/extensions/browser/content_hash_fetcher.cc
index dbe0f2185ab4cc03fd733d737ca0843b44ab6ffb..883f44ff94f619d7a5234a69411d7d9065f8e7d1 100644
--- a/extensions/browser/content_hash_fetcher.cc
+++ b/extensions/browser/content_hash_fetcher.cc
@@ -21,6 +21,7 @@
#include "base/version.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/storage_partition.h"
#include "crypto/sha2.h"
#include "extensions/browser/computed_hashes.h"
#include "extensions/browser/content_hash_tree.h"
@@ -462,7 +463,9 @@ void ContentHashFetcher::DoFetch(const Extension* extension, bool force) {
GURL url =
delegate_->GetSignatureFetchUrl(extension->id(), *extension->version());
ContentHashFetcherJob* job = new ContentHashFetcherJob(
- context_->GetRequestContext(), delegate_->GetPublicKey(), extension->id(),
+ content::BrowserContext::GetDefaultStoragePartition(context_)->
+ GetURLRequestContext(),
+ delegate_->GetPublicKey(), extension->id(),
extension->path(), url, force,
base::Bind(&ContentHashFetcher::JobFinished,
weak_ptr_factory_.GetWeakPtr()));
« no previous file with comments | « extensions/browser/api_unittest.cc ('k') | extensions/browser/extensions_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698