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

Unified Diff: chrome/browser/renderer_host/chrome_render_message_filter.cc

Issue 49003003: [Profiles, SyzyASAN] Remove incorrect use of profile_ on the IO thread. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: oops, reverted too far Created 7 years, 2 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 | « chrome/browser/renderer_host/chrome_render_message_filter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/chrome_render_message_filter.cc
diff --git a/chrome/browser/renderer_host/chrome_render_message_filter.cc b/chrome/browser/renderer_host/chrome_render_message_filter.cc
index 2d69147aef00a23b312a685d2ddc20a843812c91..dd0216eb5fec2f3011722ac68f37b7a1d454a285 100644
--- a/chrome/browser/renderer_host/chrome_render_message_filter.cc
+++ b/chrome/browser/renderer_host/chrome_render_message_filter.cc
@@ -83,6 +83,7 @@ ChromeRenderMessageFilter::ChromeRenderMessageFilter(
: render_process_id_(render_process_id),
profile_(profile),
off_the_record_(profile_->IsOffTheRecord()),
+ predictor_(profile_->GetNetworkPredictor()),
request_context_(request_context),
extension_info_map_(
extensions::ExtensionSystem::Get(profile)->info_map()),
@@ -196,13 +197,13 @@ net::HostResolver* ChromeRenderMessageFilter::GetHostResolver() {
void ChromeRenderMessageFilter::OnDnsPrefetch(
const std::vector<std::string>& hostnames) {
- if (profile_->GetNetworkPredictor())
- profile_->GetNetworkPredictor()->DnsPrefetchList(hostnames);
+ if (predictor_)
+ predictor_->DnsPrefetchList(hostnames);
}
void ChromeRenderMessageFilter::OnPreconnect(const GURL& url) {
- if (profile_->GetNetworkPredictor())
- profile_->GetNetworkPredictor()->PreconnectUrl(
+ if (predictor_)
+ predictor_->PreconnectUrl(
url, GURL(), chrome_browser_net::UrlInfo::MOUSE_OVER_MOTIVATED, 1);
}
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698