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

Unified Diff: chrome/browser/extensions/install_verifier.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
Index: chrome/browser/extensions/install_verifier.cc
diff --git a/chrome/browser/extensions/install_verifier.cc b/chrome/browser/extensions/install_verifier.cc
index 78d320cb8bc70d1213df46fe7aa2c711417ebd96..eed45965fde1f268ce9c417a12abf8f53a52fd55 100644
--- a/chrome/browser/extensions/install_verifier.cc
+++ b/chrome/browser/extensions/install_verifier.cc
@@ -24,6 +24,7 @@
#include "chrome/grit/generated_resources.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_context.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_switches.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
@@ -574,7 +575,10 @@ void InstallVerifier::BeginFetch() {
ids_to_sign.insert(operation.ids.begin(), operation.ids.end());
}
- signer_.reset(new InstallSigner(context_->GetRequestContext(), ids_to_sign));
+ signer_.reset(new InstallSigner(
+ content::BrowserContext::GetDefaultStoragePartition(context_)->
+ GetURLRequestContext(),
+ ids_to_sign));
signer_->GetSignature(base::Bind(&InstallVerifier::SignatureCallback,
weak_factory_.GetWeakPtr()));
}
« no previous file with comments | « chrome/browser/extensions/external_install_error.cc ('k') | chrome/browser/extensions/updater/chrome_update_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698