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

Unified Diff: chrome/browser/translate/translate_manager.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/translate/translate_manager.cc
diff --git a/chrome/browser/translate/translate_manager.cc b/chrome/browser/translate/translate_manager.cc
index 34f1b6409170c751c3ce120fb5ef29341f59ce78..713c80d7849bde99eb7dbd5447a69c1e5ef0b633 100644
--- a/chrome/browser/translate/translate_manager.cc
+++ b/chrome/browser/translate/translate_manager.cc
@@ -594,7 +594,7 @@ void TranslateManager::ReportLanguageDetectionError(TabContents* tab_contents) {
GetLanguageCode(g_browser_process->GetApplicationLocale());
// Open that URL in a new tab so that the user can tell us more.
Browser* browser = BrowserList::GetLastActiveWithProfile(
- tab_contents->profile());
+ static_cast<Profile*>(tab_contents->context()));
if (!browser) {
NOTREACHED();
return;

Powered by Google App Engine
This is Rietveld 408576698