OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 const GoogleServiceAuthError& error); | 149 const GoogleServiceAuthError& error); |
150 | 150 |
151 // Records UMA histograms relevant to supervised user profiles | 151 // Records UMA histograms relevant to supervised user profiles |
152 // creation and registration. | 152 // creation and registration. |
153 void RecordSupervisedProfileCreationMetrics( | 153 void RecordSupervisedProfileCreationMetrics( |
154 GoogleServiceAuthError::State error_state); | 154 GoogleServiceAuthError::State error_state); |
155 | 155 |
156 bool IsValidExistingSupervisedUserId( | 156 bool IsValidExistingSupervisedUserId( |
157 const std::string& existing_supervised_user_id) const; | 157 const std::string& existing_supervised_user_id) const; |
158 | 158 |
159 scoped_ptr<SupervisedUserRegistrationUtility> | 159 std::unique_ptr<SupervisedUserRegistrationUtility> |
160 supervised_user_registration_utility_; | 160 supervised_user_registration_utility_; |
161 #endif | 161 #endif |
162 | 162 |
163 base::WeakPtrFactory<CreateProfileHandler> weak_ptr_factory_; | 163 base::WeakPtrFactory<CreateProfileHandler> weak_ptr_factory_; |
164 | 164 |
165 DISALLOW_COPY_AND_ASSIGN(CreateProfileHandler); | 165 DISALLOW_COPY_AND_ASSIGN(CreateProfileHandler); |
166 }; | 166 }; |
167 | 167 |
168 } // namespace options | 168 } // namespace options |
169 | 169 |
170 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ | 170 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ |
OLD | NEW |