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

Side by Side Diff: chrome/browser/chromeos/login/enterprise_enrollment_screen.cc

Issue 6821075: Chrome-side lockbox bindings (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: ...and now again only my stuff! Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/enterprise_enrollment_screen.h" 5 #include "chrome/browser/chromeos/login/enterprise_enrollment_screen.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 break; 114 break;
115 case policy::CloudPolicySubsystem::UNMANAGED: 115 case policy::CloudPolicySubsystem::UNMANAGED:
116 view()->ShowAccountError(); 116 view()->ShowAccountError();
117 break; 117 break;
118 case policy::CloudPolicySubsystem::NETWORK_ERROR: 118 case policy::CloudPolicySubsystem::NETWORK_ERROR:
119 view()->ShowNetworkEnrollmentError(); 119 view()->ShowNetworkEnrollmentError();
120 break; 120 break;
121 case policy::CloudPolicySubsystem::SUCCESS: 121 case policy::CloudPolicySubsystem::SUCCESS:
122 // Success! 122 // Success!
123 registrar_.reset(); 123 registrar_.reset();
124 view()->ShowConfirmationScreen(); 124 view()->WriteLockboxData();
125 return; 125 return;
126 } 126 }
127 127
128 // We have an error. 128 // We have an error.
129 LOG(WARNING) << "Policy subsystem error during enrollment: " << state 129 LOG(WARNING) << "Policy subsystem error during enrollment: " << state
130 << " details: " << error_details; 130 << " details: " << error_details;
131 } 131 }
132 132
133 // Stop the policy infrastructure. 133 // Stop the policy infrastructure.
134 registrar_.reset(); 134 registrar_.reset();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 case GoogleServiceAuthError::REQUEST_CANCELED: 166 case GoogleServiceAuthError::REQUEST_CANCELED:
167 LOG(ERROR) << "Unexpected GAIA auth error: " << error.state(); 167 LOG(ERROR) << "Unexpected GAIA auth error: " << error.state();
168 view()->ShowFatalAuthError(); 168 view()->ShowFatalAuthError();
169 return; 169 return;
170 } 170 }
171 171
172 NOTREACHED() << error.state(); 172 NOTREACHED() << error.state();
173 } 173 }
174 174
175 } // namespace chromeos 175 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698