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/ui/webui/chromeos/login/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } // namespace | 55 } // namespace |
56 | 56 |
57 namespace chromeos { | 57 namespace chromeos { |
58 | 58 |
59 SigninScreenHandler::SigninScreenHandler() | 59 SigninScreenHandler::SigninScreenHandler() |
60 : delegate_(WebUILoginDisplay::GetInstance()), | 60 : delegate_(WebUILoginDisplay::GetInstance()), |
61 show_on_init_(false), | 61 show_on_init_(false), |
62 oobe_ui_(false), | 62 oobe_ui_(false), |
63 extension_driven_( | 63 extension_driven_( |
64 CommandLine::ForCurrentProcess()->HasSwitch( | 64 CommandLine::ForCurrentProcess()->HasSwitch( |
65 switches::kWebUIGaiaLogin)) { | 65 switches::kWebUILogin)) { |
66 delegate_->SetWebUIHandler(this); | 66 delegate_->SetWebUIHandler(this); |
67 } | 67 } |
68 | 68 |
69 SigninScreenHandler::~SigninScreenHandler() { | 69 SigninScreenHandler::~SigninScreenHandler() { |
70 } | 70 } |
71 | 71 |
72 void SigninScreenHandler::GetLocalizedStrings( | 72 void SigninScreenHandler::GetLocalizedStrings( |
73 DictionaryValue* localized_strings) { | 73 DictionaryValue* localized_strings) { |
74 localized_strings->SetString("signinScreenTitle", | 74 localized_strings->SetString("signinScreenTitle", |
75 l10n_util::GetStringUTF16(IDS_SIGNIN_SCREEN_TITLE)); | 75 l10n_util::GetStringUTF16(IDS_SIGNIN_SCREEN_TITLE)); |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 users_list.Append(guest_dict); | 329 users_list.Append(guest_dict); |
330 } | 330 } |
331 | 331 |
332 // Call the Javascript callback | 332 // Call the Javascript callback |
333 base::FundamentalValue animated_value(animated); | 333 base::FundamentalValue animated_value(animated); |
334 web_ui_->CallJavascriptFunction("login.AccountPickerScreen.loadUsers", | 334 web_ui_->CallJavascriptFunction("login.AccountPickerScreen.loadUsers", |
335 users_list, animated_value); | 335 users_list, animated_value); |
336 } | 336 } |
337 | 337 |
338 } // namespace chromeos | 338 } // namespace chromeos |
OLD | NEW |