summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/tab_contents/tab_contents_wrapper.cc')
-rw-r--r--chrome/browser/ui/tab_contents/tab_contents_wrapper.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
index 8479a5e..94f39fbe 100644
--- a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
@@ -160,7 +160,7 @@ TabContentsWrapper::TabContentsWrapper(TabContents* contents)
}
// Set-up the showing of the omnibox search infobar if applicable.
- if (OmniboxSearchHint::IsEnabled(contents->profile()))
+ if (OmniboxSearchHint::IsEnabled(profile()))
omnibox_search_hint_.reset(new OmniboxSearchHint(this));
registrar_.Add(this, chrome::NOTIFICATION_GOOGLE_URL_UPDATED,
@@ -369,6 +369,10 @@ const TabContentsWrapper* TabContentsWrapper::GetCurrentWrapperForContents(
return wrapper ? *wrapper : NULL;
}
+Profile* TabContentsWrapper::profile() const {
+ return Profile::FromBrowserContext(tab_contents()->browser_context());
+}
+
////////////////////////////////////////////////////////////////////////////////
// TabContentsWrapper implementation: