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

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

Issue 2735853003: [Merge M58] arc: Provide more logging for network failures. (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 unified diff | Download patch
« no previous file with comments | « chrome/browser/chromeos/arc/arc_optin_uma.cc ('k') | components/arc/common/auth.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_session_manager.h" 5 #include "chrome/browser/chromeos/arc/arc_session_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/shelf/shelf_delegate.h" 9 #include "ash/common/shelf/shelf_delegate.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 error = ArcSupportHost::Error::SIGN_IN_GMS_NOT_AVAILABLE_ERROR; 332 error = ArcSupportHost::Error::SIGN_IN_GMS_NOT_AVAILABLE_ERROR;
333 break; 333 break;
334 case ProvisioningResult::CLOUD_PROVISION_FLOW_FAILED: 334 case ProvisioningResult::CLOUD_PROVISION_FLOW_FAILED:
335 case ProvisioningResult::CLOUD_PROVISION_FLOW_TIMEOUT: 335 case ProvisioningResult::CLOUD_PROVISION_FLOW_TIMEOUT:
336 case ProvisioningResult::CLOUD_PROVISION_FLOW_INTERNAL_ERROR: 336 case ProvisioningResult::CLOUD_PROVISION_FLOW_INTERNAL_ERROR:
337 error = ArcSupportHost::Error::SIGN_IN_CLOUD_PROVISION_FLOW_FAIL_ERROR; 337 error = ArcSupportHost::Error::SIGN_IN_CLOUD_PROVISION_FLOW_FAIL_ERROR;
338 break; 338 break;
339 case ProvisioningResult::CHROME_SERVER_COMMUNICATION_ERROR: 339 case ProvisioningResult::CHROME_SERVER_COMMUNICATION_ERROR:
340 error = ArcSupportHost::Error::SERVER_COMMUNICATION_ERROR; 340 error = ArcSupportHost::Error::SERVER_COMMUNICATION_ERROR;
341 break; 341 break;
342 case ProvisioningResult::NO_NETWORK_CONNECTION:
343 // TODO(khmel): Use explicit error for M58+ builds.
344 error = ArcSupportHost::Error::SIGN_IN_SERVICE_UNAVAILABLE_ERROR;
345 break;
342 default: 346 default:
343 error = ArcSupportHost::Error::SIGN_IN_UNKNOWN_ERROR; 347 error = ArcSupportHost::Error::SIGN_IN_UNKNOWN_ERROR;
344 break; 348 break;
345 } 349 }
346 350
347 if (result == ProvisioningResult::ARC_STOPPED || 351 if (result == ProvisioningResult::ARC_STOPPED ||
348 result == ProvisioningResult::CHROME_SERVER_COMMUNICATION_ERROR) { 352 result == ProvisioningResult::CHROME_SERVER_COMMUNICATION_ERROR) {
349 if (profile_->GetPrefs()->HasPrefPath(prefs::kArcSignedIn)) 353 if (profile_->GetPrefs()->HasPrefPath(prefs::kArcSignedIn))
350 profile_->GetPrefs()->SetBoolean(prefs::kArcSignedIn, false); 354 profile_->GetPrefs()->SetBoolean(prefs::kArcSignedIn, false);
351 ShutdownSession(); 355 ShutdownSession();
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 892
889 #undef MAP_STATE 893 #undef MAP_STATE
890 894
891 // Some compilers report an error even if all values of an enum-class are 895 // Some compilers report an error even if all values of an enum-class are
892 // covered exhaustively in a switch statement. 896 // covered exhaustively in a switch statement.
893 NOTREACHED() << "Invalid value " << static_cast<int>(state); 897 NOTREACHED() << "Invalid value " << static_cast<int>(state);
894 return os; 898 return os;
895 } 899 }
896 900
897 } // namespace arc 901 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_optin_uma.cc ('k') | components/arc/common/auth.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698