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

Unified Diff: chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/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);
« no previous file with comments | « chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc ('k') | chrome/browser/ui/webui/chromeos/login/oobe_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698