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

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

Issue 2736033003: [Merge M57] 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
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_optin_uma.h" 5 #include "chrome/browser/chromeos/arc/arc_optin_uma.h"
6 6
7 #include "base/metrics/histogram_functions.h" 7 #include "base/metrics/histogram_functions.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 9
10 namespace arc { 10 namespace arc {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 MAP_PROVISIONING_RESULT(DEVICE_CHECK_IN_TIMEOUT); 85 MAP_PROVISIONING_RESULT(DEVICE_CHECK_IN_TIMEOUT);
86 MAP_PROVISIONING_RESULT(DEVICE_CHECK_IN_INTERNAL_ERROR); 86 MAP_PROVISIONING_RESULT(DEVICE_CHECK_IN_INTERNAL_ERROR);
87 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_FAILED); 87 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_FAILED);
88 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_TIMEOUT); 88 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_TIMEOUT);
89 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_INTERNAL_ERROR); 89 MAP_PROVISIONING_RESULT(GMS_SIGN_IN_INTERNAL_ERROR);
90 MAP_PROVISIONING_RESULT(CLOUD_PROVISION_FLOW_TIMEOUT); 90 MAP_PROVISIONING_RESULT(CLOUD_PROVISION_FLOW_TIMEOUT);
91 MAP_PROVISIONING_RESULT(CLOUD_PROVISION_FLOW_INTERNAL_ERROR); 91 MAP_PROVISIONING_RESULT(CLOUD_PROVISION_FLOW_INTERNAL_ERROR);
92 MAP_PROVISIONING_RESULT(ARC_STOPPED); 92 MAP_PROVISIONING_RESULT(ARC_STOPPED);
93 MAP_PROVISIONING_RESULT(OVERALL_SIGN_IN_TIMEOUT); 93 MAP_PROVISIONING_RESULT(OVERALL_SIGN_IN_TIMEOUT);
94 MAP_PROVISIONING_RESULT(CHROME_SERVER_COMMUNICATION_ERROR); 94 MAP_PROVISIONING_RESULT(CHROME_SERVER_COMMUNICATION_ERROR);
95 MAP_PROVISIONING_RESULT(NO_NETWORK_CONNECTION);
95 MAP_PROVISIONING_RESULT(SIZE); 96 MAP_PROVISIONING_RESULT(SIZE);
96 } 97 }
97 98
98 #undef MAP_PROVISIONING_RESULT 99 #undef MAP_PROVISIONING_RESULT
99 100
100 // Some compilers report an error even if all values of an enum-class are 101 // Some compilers report an error even if all values of an enum-class are
101 // covered exhaustively in a switch statement. 102 // covered exhaustively in a switch statement.
102 NOTREACHED() << "Invalid value " << static_cast<int>(result); 103 NOTREACHED() << "Invalid value " << static_cast<int>(result);
103 return os; 104 return os;
104 } 105 }
105 106
106 } // namespace arc 107 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_optin_uma.h ('k') | chrome/browser/chromeos/arc/arc_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698