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

Unified Diff: chrome/browser/ui/webui/signin_internals_ui.cc

Issue 1075273002: Handle ListAccount fetches from within the GaiaCookieManagerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a test post rebase Created 5 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/signin/signin_tracker_factory.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/signin_internals_ui.cc
diff --git a/chrome/browser/ui/webui/signin_internals_ui.cc b/chrome/browser/ui/webui/signin_internals_ui.cc
index f01cac7e7feed87fdc90e8189708217160d4f96f..a709e4065c8858041c87abe183540d74ad4540d5 100644
--- a/chrome/browser/ui/webui/signin_internals_ui.cc
+++ b/chrome/browser/ui/webui/signin_internals_ui.cc
@@ -8,8 +8,10 @@
#include "base/profiler/scoped_tracker.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/about_signin_internals_factory.h"
+#include "chrome/browser/signin/gaia_cookie_manager_service_factory.h"
#include "chrome/common/url_constants.h"
#include "components/signin/core/browser/about_signin_internals.h"
+#include "components/signin/core/browser/gaia_cookie_manager_service.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
#include "grit/signin_internals_resources.h"
@@ -70,7 +72,15 @@ bool SignInInternalsUI::OverrideHandleWebUIMessage(
web_ui()->CallJavascriptFunction(
"chrome.signin.getSigninInfo.handleReply",
*about_signin_internals->GetSigninStatus());
- about_signin_internals->GetCookieAccountsAsync();
+
+ std::vector<std::pair<std::string, bool>> cookie_accounts;
+ GaiaCookieManagerService* cookie_manager_service =
+ GaiaCookieManagerServiceFactory::GetForProfile(profile);
+ if (cookie_manager_service->ListAccounts(&cookie_accounts)) {
+ about_signin_internals->OnGaiaAccountsInCookieUpdated(
+ cookie_accounts,
+ GoogleServiceAuthError(GoogleServiceAuthError::NONE));
+ }
return true;
}
« no previous file with comments | « chrome/browser/signin/signin_tracker_factory.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698