| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/user_manager.h" | 5 #include "chrome/browser/chromeos/login/user_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "chrome/common/chrome_switches.h" | 42 #include "chrome/common/chrome_switches.h" |
| 43 #include "content/public/browser/browser_thread.h" | 43 #include "content/public/browser/browser_thread.h" |
| 44 #include "content/public/browser/notification_service.h" | 44 #include "content/public/browser/notification_service.h" |
| 45 #include "content/public/common/url_constants.h" | 45 #include "content/public/common/url_constants.h" |
| 46 #include "crypto/nss_util.h" | 46 #include "crypto/nss_util.h" |
| 47 #include "grit/theme_resources.h" | 47 #include "grit/theme_resources.h" |
| 48 #include "ui/base/resource/resource_bundle.h" | 48 #include "ui/base/resource/resource_bundle.h" |
| 49 #include "ui/gfx/codec/png_codec.h" | 49 #include "ui/gfx/codec/png_codec.h" |
| 50 | 50 |
| 51 #if defined(TOOLKIT_USES_GTK) | 51 #if defined(TOOLKIT_USES_GTK) |
| 52 #include "chrome/browser/chromeos/wm_ipc.h" | 52 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 using content::BrowserThread; | 55 using content::BrowserThread; |
| 56 | 56 |
| 57 namespace chromeos { | 57 namespace chromeos { |
| 58 | 58 |
| 59 namespace { | 59 namespace { |
| 60 | 60 |
| 61 // A vector pref of the users who have logged into the device. | 61 // A vector pref of the users who have logged into the device. |
| 62 const char kLoggedInUsers[] = "LoggedInUsers"; | 62 const char kLoggedInUsers[] = "LoggedInUsers"; |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 | 857 |
| 858 User* UserManager::CreateUser(const std::string& email) const { | 858 User* UserManager::CreateUser(const std::string& email) const { |
| 859 User* user = new User(email); | 859 User* user = new User(email); |
| 860 user->set_oauth_token_status(GetUserOAuthStatus(email)); | 860 user->set_oauth_token_status(GetUserOAuthStatus(email)); |
| 861 // Used to determine whether user's display name is unique. | 861 // Used to determine whether user's display name is unique. |
| 862 ++display_name_count_[user->GetDisplayName()]; | 862 ++display_name_count_[user->GetDisplayName()]; |
| 863 return user; | 863 return user; |
| 864 } | 864 } |
| 865 | 865 |
| 866 } // namespace chromeos | 866 } // namespace chromeos |
| OLD | NEW |