| 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/ui/webui/chromeos/login/network_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 const char kJsScreenPath[] = "login.NetworkScreen"; | 49 const char kJsScreenPath[] = "login.NetworkScreen"; |
| 50 | 50 |
| 51 } // namespace | 51 } // namespace |
| 52 | 52 |
| 53 namespace chromeos { | 53 namespace chromeos { |
| 54 | 54 |
| 55 // NetworkScreenHandler, public: ----------------------------------------------- | 55 // NetworkScreenHandler, public: ----------------------------------------------- |
| 56 | 56 |
| 57 NetworkScreenHandler::NetworkScreenHandler(CoreOobeActor* core_oobe_actor) | 57 NetworkScreenHandler::NetworkScreenHandler(CoreOobeActor* core_oobe_actor) |
| 58 : BaseScreenHandler(kJsScreenPath), core_oobe_actor_(core_oobe_actor) { | 58 : core_oobe_actor_(core_oobe_actor) { |
| 59 set_call_js_prefix(kJsScreenPath); |
| 59 DCHECK(core_oobe_actor_); | 60 DCHECK(core_oobe_actor_); |
| 60 } | 61 } |
| 61 | 62 |
| 62 NetworkScreenHandler::~NetworkScreenHandler() { | 63 NetworkScreenHandler::~NetworkScreenHandler() { |
| 63 if (screen_) | 64 if (screen_) |
| 64 screen_->OnViewDestroyed(this); | 65 screen_->OnViewDestroyed(this); |
| 65 } | 66 } |
| 66 | 67 |
| 67 // NetworkScreenHandler, NetworkScreenActor implementation: -------------------- | 68 // NetworkScreenHandler, NetworkScreenActor implementation: -------------------- |
| 68 | 69 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 timezone_option->SetString("value", timezone_id); | 288 timezone_option->SetString("value", timezone_id); |
| 288 timezone_option->SetString("title", timezone_name); | 289 timezone_option->SetString("title", timezone_name); |
| 289 timezone_option->SetBoolean("selected", timezone_id == current_timezone_id); | 290 timezone_option->SetBoolean("selected", timezone_id == current_timezone_id); |
| 290 timezone_list->Append(std::move(timezone_option)); | 291 timezone_list->Append(std::move(timezone_option)); |
| 291 } | 292 } |
| 292 | 293 |
| 293 return timezone_list.release(); | 294 return timezone_list.release(); |
| 294 } | 295 } |
| 295 | 296 |
| 296 } // namespace chromeos | 297 } // namespace chromeos |
| OLD | NEW |