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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service.cc

Issue 2499933002: Remove ArcAuthService::GetAuthCodeDeprecated0() implementation. (Closed)
Patch Set: Address comment. Created 4 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_auth_service.cc
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.cc b/chrome/browser/chromeos/arc/arc_auth_service.cc
index a342fc0878629bbb990c39a4211cd71a78bb7bc8..0a45dd6486a08ad8dc1ab01f83b1293c76c8cdb5 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.cc
+++ b/chrome/browser/chromeos/arc/arc_auth_service.cc
@@ -353,11 +353,7 @@ std::string ArcAuthService::GetAndResetAuthCode() {
void ArcAuthService::GetAuthCodeDeprecated0(
const GetAuthCodeDeprecated0Callback& callback) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- DCHECK(!IsOptInVerificationDisabled());
- // For robot account we must use RequestAccountInfo because it allows to
- // specify account type.
- DCHECK(!IsArcKioskMode());
- callback.Run(GetAndResetAuthCode());
+ NOTREACHED() << "GetAuthCodeDeprecated0() should no longer be callable";
}
void ArcAuthService::GetAuthCodeDeprecated(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698