| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/chromeos/login/user_board_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/login/ui/models/user_board_model.h" | 7 #include "chrome/browser/chromeos/login/ui/models/user_board_model.h" |
| 8 #include "components/login/localized_values_builder.h" | 8 #include "components/login/localized_values_builder.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 void UserBoardScreenHandler::SetPublicSessionDisplayName( | 58 void UserBoardScreenHandler::SetPublicSessionDisplayName( |
| 59 const AccountId& account_id, | 59 const AccountId& account_id, |
| 60 const std::string& display_name) { | 60 const std::string& display_name) { |
| 61 CallJS("login.AccountPickerScreen.setPublicSessionDisplayName", account_id, | 61 CallJS("login.AccountPickerScreen.setPublicSessionDisplayName", account_id, |
| 62 display_name); | 62 display_name); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void UserBoardScreenHandler::SetPublicSessionLocales( | 65 void UserBoardScreenHandler::SetPublicSessionLocales( |
| 66 const AccountId& account_id, | 66 const AccountId& account_id, |
| 67 scoped_ptr<base::ListValue> locales, | 67 std::unique_ptr<base::ListValue> locales, |
| 68 const std::string& default_locale, | 68 const std::string& default_locale, |
| 69 bool multiple_recommended_locales) { | 69 bool multiple_recommended_locales) { |
| 70 CallJS("login.AccountPickerScreen.setPublicSessionLocales", account_id, | 70 CallJS("login.AccountPickerScreen.setPublicSessionLocales", account_id, |
| 71 *locales, default_locale, multiple_recommended_locales); | 71 *locales, default_locale, multiple_recommended_locales); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void UserBoardScreenHandler::ShowBannerMessage(const base::string16& message) { | 74 void UserBoardScreenHandler::ShowBannerMessage(const base::string16& message) { |
| 75 CallJS("login.AccountPickerScreen.showBannerMessage", message); | 75 CallJS("login.AccountPickerScreen.showBannerMessage", message); |
| 76 } | 76 } |
| 77 | 77 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 98 model_ = &model; | 98 model_ = &model; |
| 99 BaseScreenHandler::SetBaseScreen(model_); | 99 BaseScreenHandler::SetBaseScreen(model_); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void UserBoardScreenHandler::Unbind() { | 102 void UserBoardScreenHandler::Unbind() { |
| 103 model_ = nullptr; | 103 model_ = nullptr; |
| 104 BaseScreenHandler::SetBaseScreen(nullptr); | 104 BaseScreenHandler::SetBaseScreen(nullptr); |
| 105 } | 105 } |
| 106 | 106 |
| 107 } // namespace chromeos | 107 } // namespace chromeos |
| OLD | NEW |