summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_download.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autofill/autofill_download.cc')
-rw-r--r--chrome/browser/autofill/autofill_download.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/chrome/browser/autofill/autofill_download.cc b/chrome/browser/autofill/autofill_download.cc
index b5bdbed..9c39339f 100644
--- a/chrome/browser/autofill/autofill_download.cc
+++ b/chrome/browser/autofill/autofill_download.cc
@@ -185,15 +185,8 @@ void AutofillDownloadManager::SetNegativeUploadRate(double rate) {
bool AutofillDownloadManager::StartRequest(
const std::string& form_xml,
const FormRequestData& request_data) {
- net::URLRequestContextGetter* request_context =
- Profile::Deprecated::GetDefaultRequestContext();
- // Check if default request context is NULL: this very rarely happens,
- // I think, this could happen only if user opens chrome with some pages
- // loading the forms immediately; I cannot reproduce this even in that
- // scenario, but bug 74492 shows it happened at least once. In that case bail
- // out and fall back on our own heuristics.
- if (!request_context)
- return false;
+ net::URLRequestContextGetter* request_context = profile_->GetRequestContext();
+ DCHECK(request_context);
std::string request_url;
if (request_data.request_type == AutofillDownloadManager::REQUEST_QUERY)
request_url = kAutofillQueryServerRequestUrl;