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

Unified Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc

Issue 10919066: Use BrowserContext as key in API. Switch Autofill to use BC in place of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent Created 8 years, 3 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/autofill/tab_autofill_manager_delegate.cc
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
index 74dec552f9e0e1da403e11914738d1876957267c..3562ea7b0f6f01d417420193fc4319b304e6d04a 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -24,6 +24,15 @@ TabAutofillManagerDelegate::TabAutofillManagerDelegate(TabContents* tab)
DCHECK(tab_);
}
+content::BrowserContext* TabAutofillManagerDelegate::GetBrowserContext() const {
+ return tab_->profile();
+}
+
+content::BrowserContext*
+TabAutofillManagerDelegate::GetOriginalBrowserContext() const {
+ return tab_->profile()->GetOriginalProfile();
+}
+
InfoBarService* TabAutofillManagerDelegate::GetInfoBarService() {
return tab_->infobar_tab_helper();
}
« no previous file with comments | « chrome/browser/ui/autofill/tab_autofill_manager_delegate.h ('k') | chrome/browser/ui/webui/options/preferences_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698