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

Side by Side Diff: chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc

Issue 2433873005: cros: Use "regular" extension session type for child users (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/users/chrome_user_manager_impl.h" 5 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cstddef> 9 #include <cstddef>
10 #include <set> 10 #include <set>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 *multi_profile_behavior = 144 *multi_profile_behavior =
145 prefs->GetString(prefs::kMultiProfileUserBehavior); 145 prefs->GetString(prefs::kMultiProfileUserBehavior);
146 } 146 }
147 return true; 147 return true;
148 } 148 }
149 149
150 extensions::FeatureSessionType GetFeatureSessionTypeForUser( 150 extensions::FeatureSessionType GetFeatureSessionTypeForUser(
151 const user_manager::User* user) { 151 const user_manager::User* user) {
152 switch (user->GetType()) { 152 switch (user->GetType()) {
153 case user_manager::USER_TYPE_REGULAR: 153 case user_manager::USER_TYPE_REGULAR:
154 case user_manager::USER_TYPE_CHILD:
154 return extensions::FeatureSessionType::REGULAR; 155 return extensions::FeatureSessionType::REGULAR;
155 case user_manager::USER_TYPE_KIOSK_APP: 156 case user_manager::USER_TYPE_KIOSK_APP:
156 return extensions::FeatureSessionType::KIOSK; 157 return extensions::FeatureSessionType::KIOSK;
157 default: 158 default:
158 // The rest of user types is not used by extensions features. 159 // The rest of user types is not used by extensions features.
159 return extensions::FeatureSessionType::UNKNOWN; 160 return extensions::FeatureSessionType::UNKNOWN;
160 } 161 }
161 } 162 }
162 163
163 } // namespace 164 } // namespace
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 break; 1343 break;
1343 default: 1344 default:
1344 NOTREACHED(); 1345 NOTREACHED();
1345 break; 1346 break;
1346 } 1347 }
1347 1348
1348 return user; 1349 return user;
1349 } 1350 }
1350 1351
1351 } // namespace chromeos 1352 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698