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

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

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now Created 9 years, 5 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.cc
diff --git a/chrome/browser/safe_browsing/malware_details.cc b/chrome/browser/safe_browsing/malware_details.cc
index decf24b5d6cef7d6a9aafa96254e6a097699fd7d..302844a8c10059046dc773511e15204726e4f0e7 100644
--- a/chrome/browser/safe_browsing/malware_details.cc
+++ b/chrome/browser/safe_browsing/malware_details.cc
@@ -74,12 +74,12 @@ MalwareDetails::MalwareDetails(
TabContents* tab_contents,
const SafeBrowsingService::UnsafeResource& resource)
: TabContentsObserver(tab_contents),
- request_context_getter_(tab_contents->profile()->GetRequestContext()),
+ request_context_getter_(tab_contents->context()->GetRequestContext()),
sb_service_(sb_service),
resource_(resource),
cache_collector_(new MalwareDetailsCacheCollector),
- redirects_collector_(
- new MalwareDetailsRedirectsCollector(tab_contents->profile())) {
+ redirects_collector_(new MalwareDetailsRedirectsCollector(
+ static_cast<Profile*>(tab_contents->context()))) {
StartCollection();
}

Powered by Google App Engine
This is Rietveld 408576698