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

Side by Side Diff: chrome/browser/chromeos/arc/arc_auth_service.cc

Issue 2723263003: arc: Provide more logging for network failures. (Closed)
Patch Set: forgot to clean arc_auth_service.cc 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/arc/arc_auth_service.h" 5 #include "chrome/browser/chromeos/arc/arc_auth_service.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 MAP_PROVISIONING_RESULT(DEVICE_CHECK_IN_INTERNAL_ERROR); 49 MAP_PROVISIONING_RESULT(DEVICE_CHECK_IN_INTERNAL_ERROR);
50 MAP_PROVISIONING_RESULT(GMS_NETWORK_ERROR); 50 MAP_PROVISIONING_RESULT(GMS_NETWORK_ERROR);
51 MAP_PROVISIONING_RESULT(GMS_SERVICE_UNAVAILABLE); 51 MAP_PROVISIONING_RESULT(GMS_SERVICE_UNAVAILABLE);
52 MAP_PROVISIONING_RESULT(GMS_BAD_AUTHENTICATION); 52 MAP_PROVISIONING_RESULT(GMS_BAD_AUTHENTICATION);
53 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_FAILED); 53 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_FAILED);
54 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_TIMEOUT); 54 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_TIMEOUT);
55 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_INTERNAL_ERROR); 55 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_INTERNAL_ERROR);
56 MAP_PROVISIONING_RESULT(CLOUD_PROVISION_FLOW_FAILED); 56 MAP_PROVISIONING_RESULT(CLOUD_PROVISION_FLOW_FAILED);
57 MAP_PROVISIONING_RESULT(CLOUD_PROVISION_FLOW_TIMEOUT); 57 MAP_PROVISIONING_RESULT(CLOUD_PROVISION_FLOW_TIMEOUT);
58 MAP_PROVISIONING_RESULT(CLOUD_PROVISION_FLOW_INTERNAL_ERROR); 58 MAP_PROVISIONING_RESULT(CLOUD_PROVISION_FLOW_INTERNAL_ERROR);
59 MAP_PROVISIONING_RESULT(NO_NETWORK_CONNECTION);
59 } 60 }
60 #undef MAP_PROVISIONING_RESULT 61 #undef MAP_PROVISIONING_RESULT
61 62
62 NOTREACHED() << "unknown reason: " << static_cast<int>(reason); 63 NOTREACHED() << "unknown reason: " << static_cast<int>(reason);
63 return ProvisioningResult::UNKNOWN_ERROR; 64 return ProvisioningResult::UNKNOWN_ERROR;
64 } 65 }
65 66
66 mojom::ChromeAccountType GetAccountType() { 67 mojom::ChromeAccountType GetAccountType() {
67 return IsArcKioskMode() ? mojom::ChromeAccountType::ROBOT_ACCOUNT 68 return IsArcKioskMode() ? mojom::ChromeAccountType::ROBOT_ACCOUNT
68 : mojom::ChromeAccountType::USER_ACCOUNT; 69 : mojom::ChromeAccountType::USER_ACCOUNT;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 return; 315 return;
315 } 316 }
316 317
317 notifier_->Notify( 318 notifier_->Notify(
318 !IsArcOptInVerificationDisabled(), auth_code, GetAccountType(), 319 !IsArcOptInVerificationDisabled(), auth_code, GetAccountType(),
319 policy_util::IsAccountManaged(ArcSessionManager::Get()->profile())); 320 policy_util::IsAccountManaged(ArcSessionManager::Get()->profile()));
320 notifier_.reset(); 321 notifier_.reset();
321 } 322 }
322 323
323 } // namespace arc 324 } // namespace arc
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_optin_uma.h » ('j') | components/arc/net/arc_net_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698