Index: chrome/browser/extensions/theme_installed_infobar_delegate.cc |
diff --git a/chrome/browser/extensions/theme_installed_infobar_delegate.cc b/chrome/browser/extensions/theme_installed_infobar_delegate.cc |
index 27e9c03450ce60c4eee386a39191f1e15e91e075..a7cb33b0294872dd5f50f5154cb7d9419dadec58 100644 |
--- a/chrome/browser/extensions/theme_installed_infobar_delegate.cc |
+++ b/chrome/browser/extensions/theme_installed_infobar_delegate.cc |
@@ -26,7 +26,7 @@ ThemeInstalledInfoBarDelegate::ThemeInstalledInfoBarDelegate( |
const std::string& previous_theme_id, |
bool previous_using_native_theme) |
: ConfirmInfoBarDelegate(tab_contents), |
- profile_(tab_contents->profile()), |
+ profile_(static_cast<Profile*>(tab_contents->context())), |
theme_service_(ThemeServiceFactory::GetForProfile(profile_)), |
name_(new_theme->name()), |
theme_id_(new_theme->id()), |