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

Unified Diff: chrome/browser/ui/cocoa/keystone_infobar.mm

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/cocoa/keystone_infobar.mm
diff --git a/chrome/browser/ui/cocoa/keystone_infobar.mm b/chrome/browser/ui/cocoa/keystone_infobar.mm
index fd1ba9f02c62d7e3dfdbb2b152320a03d465ffe9..0fc1cbfc93ffe15d919d2fa3ac92f48f45c6f438 100644
--- a/chrome/browser/ui/cocoa/keystone_infobar.mm
+++ b/chrome/browser/ui/cocoa/keystone_infobar.mm
@@ -69,7 +69,7 @@ class KeystonePromotionInfoBarDelegate : public ConfirmInfoBarDelegate {
KeystonePromotionInfoBarDelegate::KeystonePromotionInfoBarDelegate(
TabContents* tab_contents)
: ConfirmInfoBarDelegate(tab_contents),
- profile_(tab_contents->profile()),
+ profile_(static_cast<Profile*>(tab_contents->browser_context())),
can_expire_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) {
const int kCanExpireOnNavigationAfterMilliseconds = 8 * 1000;

Powered by Google App Engine
This is Rietveld 408576698