Index: chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc |
=================================================================== |
--- chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc (revision 116011) |
+++ chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc (working copy) |
@@ -387,7 +387,7 @@ |
policy::kMetricEnrollmentStarted, |
policy::kMetricEnrollmentSize); |
Profile* profile = Profile::FromBrowserContext( |
- web_ui()->tab_contents()->GetBrowserContext()); |
+ web_ui()->web_contents()->GetBrowserContext()); |
oauth_fetcher_.reset( |
new GaiaOAuthFetcher(this, |
profile->GetRequestContext(), |
@@ -435,7 +435,7 @@ |
return; |
Profile* profile = Profile::FromBrowserContext( |
- web_ui()->tab_contents()->GetBrowserContext()); |
+ web_ui()->web_contents()->GetBrowserContext()); |
browsing_data_remover_ = |
new BrowsingDataRemover(profile, |
BrowsingDataRemover::EVERYTHING, |
@@ -446,7 +446,7 @@ |
void EnterpriseOAuthEnrollmentScreenHandler::RevokeTokens() { |
Profile* profile = Profile::FromBrowserContext( |
- web_ui()->tab_contents()->GetBrowserContext()); |
+ web_ui()->web_contents()->GetBrowserContext()); |
if (!access_token_.empty()) { |
new TokenRevoker(access_token_, access_token_secret_, profile); |