| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/login_utils.h" | 5 #include "chrome/browser/chromeos/login/login_utils.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/base_paths.h" | 11 #include "base/base_paths.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/file_util.h" | |
| 18 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
| 18 #include "base/files/file_util.h" |
| 19 #include "base/location.h" | 19 #include "base/location.h" |
| 20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
| 21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
| 22 #include "base/memory/singleton.h" | 22 #include "base/memory/singleton.h" |
| 23 #include "base/memory/weak_ptr.h" | 23 #include "base/memory/weak_ptr.h" |
| 24 #include "base/prefs/pref_member.h" | 24 #include "base/prefs/pref_member.h" |
| 25 #include "base/prefs/pref_service.h" | 25 #include "base/prefs/pref_service.h" |
| 26 #include "base/strings/string_util.h" | 26 #include "base/strings/string_util.h" |
| 27 #include "base/strings/utf_string_conversions.h" | 27 #include "base/strings/utf_string_conversions.h" |
| 28 #include "base/synchronization/lock.h" | 28 #include "base/synchronization/lock.h" |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 CrosSettings* cros_settings = CrosSettings::Get(); | 486 CrosSettings* cros_settings = CrosSettings::Get(); |
| 487 bool allow_new_user = false; | 487 bool allow_new_user = false; |
| 488 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 488 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 489 if (allow_new_user) | 489 if (allow_new_user) |
| 490 return true; | 490 return true; |
| 491 return cros_settings->FindEmailInList( | 491 return cros_settings->FindEmailInList( |
| 492 kAccountsPrefUsers, username, wildcard_match); | 492 kAccountsPrefUsers, username, wildcard_match); |
| 493 } | 493 } |
| 494 | 494 |
| 495 } // namespace chromeos | 495 } // namespace chromeos |
| OLD | NEW |