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

Unified Diff: chrome/browser/tabs/tab_finder.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/tabs/tab_finder.cc
diff --git a/chrome/browser/tabs/tab_finder.cc b/chrome/browser/tabs/tab_finder.cc
index ec2ca0e5cce4295f5b4259bf204604f93501d37e..c5f44fa6b9028bc3783ea4565b66b05c46658b66 100644
--- a/chrome/browser/tabs/tab_finder.cc
+++ b/chrome/browser/tabs/tab_finder.cc
@@ -182,13 +182,14 @@ void TabFinder::TabDestroyed(TabContentsObserverImpl* observer) {
}
void TabFinder::CancelRequestsFor(TabContents* tab_contents) {
- if (tab_contents->profile()->IsOffTheRecord())
+ if (tab_contents->context()->IsOffTheRecord())
return;
tab_contents_to_url_.erase(tab_contents);
- HistoryService* history = tab_contents->profile()->GetHistoryService(
- Profile::EXPLICIT_ACCESS);
+ Profile* profile = static_cast<Profile*>(tab_contents->context());
+ HistoryService* history =
+ profile->GetHistoryService(Profile::EXPLICIT_ACCESS);
if (history) {
CancelableRequestProvider::Handle request_handle;
if (callback_consumer_.GetFirstHandleForClientData(tab_contents,

Powered by Google App Engine
This is Rietveld 408576698