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

Unified Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.cc

Issue 1864583006: Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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
« no previous file with comments | « chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc ('k') | chrome/test/base/testing_profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
diff --git a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
index b81576b17e4c948c9f897bff6042641ed8f4589b..375dd8c813ad21a0bbfcbe7f9c569205fad0799e 100644
--- a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
+++ b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
@@ -49,6 +49,7 @@
#include "components/proximity_auth/screenlock_bridge.h"
#include "components/signin/core/account_id/account_id.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "google_apis/gaia/gaia_auth_fetcher.h"
@@ -430,8 +431,9 @@ void UserManagerScreenHandler::HandleAuthenticatedLaunchUser(
// change makes use of a token so we do that... if it's available.
if (!oauth_client_) {
oauth_client_.reset(new gaia::GaiaOAuthClient(
- web_ui()->GetWebContents()->GetBrowserContext()
- ->GetRequestContext()));
+ content::BrowserContext::GetDefaultStoragePartition(
+ web_ui()->GetWebContents()->GetBrowserContext())->
+ GetURLRequestContext()));
}
const std::string token = entry->GetPasswordChangeDetectionToken();
« no previous file with comments | « chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc ('k') | chrome/test/base/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698