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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/enrollment_screen.cc

Issue 214963002: Add error message for domain mismatch on re-enrollment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move message declaration in policy_strings.grdp to work around an Android build issue. Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/login/enrollment/enrollment_screen.h" 5 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 return; 248 return;
249 case policy::DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER: 249 case policy::DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER:
250 UMAFailure(policy::kMetricEnrollmentInvalidSerialNumber); 250 UMAFailure(policy::kMetricEnrollmentInvalidSerialNumber);
251 return; 251 return;
252 case policy::DM_STATUS_SERVICE_MISSING_LICENSES: 252 case policy::DM_STATUS_SERVICE_MISSING_LICENSES:
253 UMAFailure(policy::kMetricMissingLicensesError); 253 UMAFailure(policy::kMetricMissingLicensesError);
254 return; 254 return;
255 case policy::DM_STATUS_SERVICE_DEPROVISIONED: 255 case policy::DM_STATUS_SERVICE_DEPROVISIONED:
256 UMAFailure(policy::kMetricEnrollmentDeprovisioned); 256 UMAFailure(policy::kMetricEnrollmentDeprovisioned);
257 return; 257 return;
258 case policy::DM_STATUS_SERVICE_DOMAIN_MISMATCH:
259 UMAFailure(policy::kMetricEnrollmentDomainMismatch);
260 return;
258 } 261 }
259 break; 262 break;
260 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: 263 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE:
261 UMAFailure(policy::kMetricEnrollmentInvalidEnrollmentMode); 264 UMAFailure(policy::kMetricEnrollmentInvalidEnrollmentMode);
262 return; 265 return;
263 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT: 266 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT:
264 UMAFailure(policy::kMetricLockboxTimeoutError); 267 UMAFailure(policy::kMetricLockboxTimeoutError);
265 return; 268 return;
266 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER: 269 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER:
267 UMAFailure(policy::kMetricEnrollmentWrongUserError); 270 UMAFailure(policy::kMetricEnrollmentWrongUserError);
(...skipping 23 matching lines...) Expand all
291 sample = policy::kMetricEnrollmentAutoFailed; 294 sample = policy::kMetricEnrollmentAutoFailed;
292 UMA(sample); 295 UMA(sample);
293 } 296 }
294 297
295 void EnrollmentScreen::ShowSigninScreen() { 298 void EnrollmentScreen::ShowSigninScreen() {
296 actor_->Show(); 299 actor_->Show();
297 actor_->ShowSigninScreen(); 300 actor_->ShowSigninScreen();
298 } 301 }
299 302
300 } // namespace chromeos 303 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698