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

Unified Diff: chrome/browser/safe_browsing/malware_details_cache.cc

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/safe_browsing/malware_details_cache.cc
diff --git a/chrome/browser/safe_browsing/malware_details_cache.cc b/chrome/browser/safe_browsing/malware_details_cache.cc
index cdd0090bdb7238b05b91d99b1a0094b98cf653f4..f275ce6c9bf48d7df4f2b89e29666398fd9b7af9 100644
--- a/chrome/browser/safe_browsing/malware_details_cache.cc
+++ b/chrome/browser/safe_browsing/malware_details_cache.cc
@@ -76,7 +76,7 @@ void MalwareDetailsCacheCollector::OpenEntry() {
return;
}
- if (!request_context_getter_) {
+ if (!request_context_getter_.get()) {
DVLOG(1) << "Missing request context getter";
AllDone(false);
return;
@@ -84,7 +84,7 @@ void MalwareDetailsCacheCollector::OpenEntry() {
current_fetch_.reset(net::URLFetcher::Create(
GURL(resources_it_->first), net::URLFetcher::GET, this));
- current_fetch_->SetRequestContext(request_context_getter_);
+ current_fetch_->SetRequestContext(request_context_getter_.get());
// Only from cache, and don't save cookies.
current_fetch_->SetLoadFlags(net::LOAD_ONLY_FROM_CACHE |
net::LOAD_DO_NOT_SAVE_COOKIES);
« no previous file with comments | « chrome/browser/safe_browsing/malware_details.cc ('k') | chrome/browser/safe_browsing/malware_details_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698