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

Unified Diff: chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.cc

Issue 2742643002: arc: Change VLOG to LOG for ArcAuthContext and fetcher. (Closed)
Patch Set: Created 3 years, 9 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/chromeos/arc/arc_auth_context.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.cc
diff --git a/chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.cc b/chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.cc
index 9c09c5311f310f87b7eff31a13582c6a753a0c97..2d1928651345d1e29a8bf8eefdb1b51076692d5f 100644
--- a/chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.cc
+++ b/chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.cc
@@ -117,7 +117,7 @@ void ArcBackgroundAuthCodeFetcher::OnGetTokenSuccess(
void ArcBackgroundAuthCodeFetcher::OnGetTokenFailure(
const OAuth2TokenService::Request* request,
const GoogleServiceAuthError& error) {
- VLOG(2) << "Failed to get LST " << error.ToString() << ".";
+ LOG(WARNING) << "Failed to get LST " << error.ToString() << ".";
ResetFetchers();
ReportResult(std::string(), OptInSilentAuthCode::NO_LST_TOKEN);
}
@@ -131,7 +131,8 @@ void ArcBackgroundAuthCodeFetcher::OnURLFetchComplete(
ResetFetchers();
if (response_code != net::HTTP_OK) {
- VLOG(2) << "Server returned wrong response code: " << response_code << ".";
+ LOG(WARNING) << "Server returned wrong response code: " << response_code
+ << ".";
OptInSilentAuthCode uma_status;
if (response_code >= 400 && response_code < 500)
uma_status = OptInSilentAuthCode::HTTP_CLIENT_FAILURE;
@@ -148,8 +149,8 @@ void ArcBackgroundAuthCodeFetcher::OnURLFetchComplete(
std::unique_ptr<base::Value> auth_code_info =
deserializer.Deserialize(nullptr, &error_msg);
if (!auth_code_info) {
- VLOG(2) << "Unable to deserialize auth code json data: " << error_msg
- << ".";
+ LOG(WARNING) << "Unable to deserialize auth code json data: " << error_msg
+ << ".";
ReportResult(std::string(), OptInSilentAuthCode::RESPONSE_PARSE_FAILURE);
return;
}
@@ -165,7 +166,7 @@ void ArcBackgroundAuthCodeFetcher::OnURLFetchComplete(
std::string auth_code;
if (!auth_code_dictionary->GetString(kToken, &auth_code) ||
auth_code.empty()) {
- VLOG(2) << "Response does not contain auth code.";
+ LOG(WARNING) << "Response does not contain auth code.";
ReportResult(std::string(), OptInSilentAuthCode::NO_AUTH_CODE_IN_RESPONSE);
return;
}
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698