| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ui/webui/signin/user_manager_screen_handler.h" | 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/value_conversions.h" | 9 #include "base/value_conversions.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
| 32 #include "grit/theme_resources.h" | 32 #include "grit/theme_resources.h" |
| 33 #include "third_party/skia/include/core/SkBitmap.h" | 33 #include "third_party/skia/include/core/SkBitmap.h" |
| 34 #include "ui/base/l10n/l10n_util.h" | 34 #include "ui/base/l10n/l10n_util.h" |
| 35 #include "ui/base/resource/resource_bundle.h" | 35 #include "ui/base/resource/resource_bundle.h" |
| 36 #include "ui/base/webui/web_ui_util.h" | 36 #include "ui/base/webui/web_ui_util.h" |
| 37 #include "ui/gfx/image/image.h" | 37 #include "ui/gfx/image/image.h" |
| 38 #include "ui/gfx/image/image_skia.h" | 38 #include "ui/gfx/image/image_skia.h" |
| 39 #include "ui/gfx/image/image_util.h" | 39 #include "ui/gfx/image/image_util.h" |
| 40 | 40 |
| 41 #if defined(ENABLE_MANAGED_USERS) | |
| 42 #include "chrome/browser/supervised_user/supervised_user_service.h" | |
| 43 #endif | |
| 44 | |
| 45 namespace { | 41 namespace { |
| 46 // User dictionary keys. | 42 // User dictionary keys. |
| 47 const char kKeyUsername[] = "username"; | 43 const char kKeyUsername[] = "username"; |
| 48 const char kKeyDisplayName[]= "displayName"; | 44 const char kKeyDisplayName[]= "displayName"; |
| 49 const char kKeyEmailAddress[] = "emailAddress"; | 45 const char kKeyEmailAddress[] = "emailAddress"; |
| 50 const char kKeyProfilePath[] = "profilePath"; | 46 const char kKeyProfilePath[] = "profilePath"; |
| 51 const char kKeyPublicAccount[] = "publicAccount"; | 47 const char kKeyPublicAccount[] = "publicAccount"; |
| 52 const char kKeySupervisedUser[] = "supervisedUser"; | 48 const char kKeySupervisedUser[] = "supervisedUser"; |
| 53 const char kKeySignedIn[] = "signedIn"; | 49 const char kKeySignedIn[] = "signedIn"; |
| 54 const char kKeyCanRemove[] = "canRemove"; | 50 const char kKeyCanRemove[] = "canRemove"; |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 } else { | 648 } else { |
| 653 web_ui()->CallJavascriptFunction( | 649 web_ui()->CallJavascriptFunction( |
| 654 "cr.ui.Oobe.showSignInError", | 650 "cr.ui.Oobe.showSignInError", |
| 655 base::FundamentalValue(0), | 651 base::FundamentalValue(0), |
| 656 base::StringValue( | 652 base::StringValue( |
| 657 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING)), | 653 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING)), |
| 658 base::StringValue(""), | 654 base::StringValue(""), |
| 659 base::FundamentalValue(0)); | 655 base::FundamentalValue(0)); |
| 660 } | 656 } |
| 661 } | 657 } |
| OLD | NEW |