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

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

Issue 2416213004: ChromeOS: removed outdated --disable-timezone-tracking-option switch. (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
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 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 if ((users + GetUsersAllowedForMultiProfile().size()) > 1) 1165 if ((users + GetUsersAllowedForMultiProfile().size()) > 1)
1166 ash::MultiProfileUMA::RecordUserCount(users); 1166 ash::MultiProfileUMA::RecordUserCount(users);
1167 } 1167 }
1168 1168
1169 base::debug::SetCrashKeyValue( 1169 base::debug::SetCrashKeyValue(
1170 crash_keys::kNumberOfUsers, 1170 crash_keys::kNumberOfUsers,
1171 base::StringPrintf("%" PRIuS, GetLoggedInUsers().size())); 1171 base::StringPrintf("%" PRIuS, GetLoggedInUsers().size()));
1172 } 1172 }
1173 1173
1174 void ChromeUserManagerImpl::UpdateUserTimeZoneRefresher(Profile* profile) { 1174 void ChromeUserManagerImpl::UpdateUserTimeZoneRefresher(Profile* profile) {
1175 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
1176 chromeos::switches::kDisableTimeZoneTrackingOption)) {
1177 return;
1178 }
1179
1180 const user_manager::User* user = 1175 const user_manager::User* user =
1181 ProfileHelper::Get()->GetUserByProfile(profile); 1176 ProfileHelper::Get()->GetUserByProfile(profile);
1182 if (user == NULL) 1177 if (user == NULL)
1183 return; 1178 return;
1184 1179
1185 // In Multi-Profile mode only primary user settings are in effect. 1180 // In Multi-Profile mode only primary user settings are in effect.
1186 if (user != user_manager::UserManager::Get()->GetPrimaryUser()) 1181 if (user != user_manager::UserManager::Get()->GetPrimaryUser())
1187 return; 1182 return;
1188 1183
1189 if (!IsUserLoggedIn()) 1184 if (!IsUserLoggedIn())
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 break; 1337 break;
1343 default: 1338 default:
1344 NOTREACHED(); 1339 NOTREACHED();
1345 break; 1340 break;
1346 } 1341 }
1347 1342
1348 return user; 1343 return user;
1349 } 1344 }
1350 1345
1351 } // namespace chromeos 1346 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chromeos/system/timezone_resolver_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698