Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/signin/chrome_signin_client.h" | 5 #include "chrome/browser/signin/chrome_signin_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 447 } | 447 } |
| 448 | 448 |
| 449 void ChromeSigninClient::LockProfile(const base::FilePath& profile_path) { | 449 void ChromeSigninClient::LockProfile(const base::FilePath& profile_path) { |
| 450 ProfileAttributesEntry* entry; | 450 ProfileAttributesEntry* entry; |
| 451 bool has_entry = | 451 bool has_entry = |
| 452 g_browser_process->profile_manager() | 452 g_browser_process->profile_manager() |
| 453 ->GetProfileAttributesStorage() | 453 ->GetProfileAttributesStorage() |
| 454 .GetProfileAttributesWithPath(profile_->GetPath(), &entry); | 454 .GetProfileAttributesWithPath(profile_->GetPath(), &entry); |
| 455 if (!has_entry) | 455 if (!has_entry) |
| 456 return; | 456 return; |
| 457 entry->SetIsSigninRequired(true); | 457 entry->LockForceSigninProfile(true); |
|
anthonyvd
2016/11/04 21:31:02
Why isn't this still just SetIsSigninRequired cons
zmin
2016/11/04 22:11:53
LockProfile() is a function I added recently and w
| |
| 458 } | 458 } |
| 459 | 459 |
| 460 void ChromeSigninClient::ShowUserManager(const base::FilePath& profile_path) { | 460 void ChromeSigninClient::ShowUserManager(const base::FilePath& profile_path) { |
| 461 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 461 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
| 462 UserManager::Show(profile_path, profiles::USER_MANAGER_NO_TUTORIAL, | 462 UserManager::Show(profile_path, profiles::USER_MANAGER_NO_TUTORIAL, |
| 463 profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION); | 463 profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION); |
| 464 #endif | 464 #endif |
| 465 } | 465 } |
| OLD | NEW |