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

Unified Diff: chrome/browser/ui/ash/user_accounts_delegate_chromeos.cc

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address final comments Created 5 years, 6 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/ash/user_accounts_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/user_accounts_delegate_chromeos.cc b/chrome/browser/ui/ash/user_accounts_delegate_chromeos.cc
index df024639cf14e9d6ecf68bd63d365057cdbdbbe3..1dbbb12d679905c3116765486d3701aaf2ae19e6 100644
--- a/chrome/browser/ui/ash/user_accounts_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/user_accounts_delegate_chromeos.cc
@@ -12,7 +12,6 @@
#include "chrome/browser/chromeos/ui/inline_login_dialog.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
#include "chrome/browser/signin/signin_manager_factory.h"
-#include "components/signin/core/browser/mutable_profile_oauth2_token_service.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/signin/core/browser/signin_manager.h"
#include "components/user_manager/user.h"
@@ -64,9 +63,8 @@ std::string UserAccountsDelegateChromeOS::GetAccountDisplayName(
void UserAccountsDelegateChromeOS::DeleteAccount(
const std::string& account_id) {
- MutableProfileOAuth2TokenService* oauth2_token_service =
- ProfileOAuth2TokenServiceFactory::GetPlatformSpecificForProfile(
- user_profile_);
+ ProfileOAuth2TokenService* oauth2_token_service =
+ ProfileOAuth2TokenServiceFactory::GetForProfile(user_profile_);
oauth2_token_service->RevokeCredentials(account_id);
}

Powered by Google App Engine
This is Rietveld 408576698