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

Unified Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context 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/ui/tab_contents/tab_contents_wrapper.cc
diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
index 048708992da20141d8d8ab95a2b24bdd505ffb45..a1ea8802fa0464e18a5e1c1ae86fdf8a93d81d49 100644
--- a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
@@ -169,7 +169,7 @@ TabContentsWrapper::TabContentsWrapper(TabContents* contents)
NotificationService::AllSources());
#endif
- // Register for notifications about all interested prefs change.
+ // Register for notifications about all interested prefs changes.
PrefService* prefs = profile()->GetPrefs();
pref_change_registrar_.Init(prefs);
if (prefs) {
@@ -193,6 +193,10 @@ TabContentsWrapper::~TabContentsWrapper() {
RemoveAllInfoBars(false);
}
+Profile* TabContentsWrapper::profile() const {
+ return static_cast<Profile*>(tab_contents_->browser_context());
+}
+
PropertyAccessor<TabContentsWrapper*>* TabContentsWrapper::property_accessor() {
return g_tab_contents_wrapper_property_accessor.Pointer();
}

Powered by Google App Engine
This is Rietveld 408576698