Index: chrome/browser/favicon/favicon_handler.cc |
diff --git a/chrome/browser/favicon/favicon_handler.cc b/chrome/browser/favicon/favicon_handler.cc |
index 31013911fe514b931ddab90a7b90dbc44c00922a..87909fa52718954f6064065087a8ff8ef34701dd 100644 |
--- a/chrome/browser/favicon/favicon_handler.cc |
+++ b/chrome/browser/favicon/favicon_handler.cc |
@@ -472,7 +472,7 @@ void FaviconHandler::SetHistoryFavicons(const GURL& page_url, |
} |
bool FaviconHandler::ShouldSaveFavicon(const GURL& url) { |
- if (!profile_->IsOffTheRecord()) |
+ if (!delegate_->IsOffTheRecord()) |
return true; |
// Otherwise store the favicon if the page is bookmarked. |
@@ -549,7 +549,7 @@ void FaviconHandler::DownloadFaviconOrAskFaviconService( |
// We don't know the favicon, but we may have previously downloaded the |
// favicon for another page that shares the same favicon. Ask for the |
// favicon given the favicon URL. |
- if (profile_->IsOffTheRecord()) { |
+ if (delegate_->IsOffTheRecord()) { |
GetFaviconFromFaviconService( |
icon_url, icon_type, |
base::Bind(&FaviconHandler::OnFaviconData, base::Unretained(this)), |