OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/host_pairing_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "chrome/browser/ui/webui/chromeos/login/oobe_screen.h" | 9 #include "chrome/browser/chromeos/login/oobe_screen.h" |
10 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
11 #include "chromeos/chromeos_switches.h" | 11 #include "chromeos/chromeos_switches.h" |
12 #include "components/login/localized_values_builder.h" | 12 #include "components/login/localized_values_builder.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 const char kJsScreenPath[] = "login.HostPairingScreen"; | 18 const char kJsScreenPath[] = "login.HostPairingScreen"; |
19 | 19 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 void HostPairingScreenHandler::OnContextChanged( | 113 void HostPairingScreenHandler::OnContextChanged( |
114 const base::DictionaryValue& diff) { | 114 const base::DictionaryValue& diff) { |
115 if (!js_context_ready_) { | 115 if (!js_context_ready_) { |
116 context_cache_.ApplyChanges(diff, NULL); | 116 context_cache_.ApplyChanges(diff, NULL); |
117 return; | 117 return; |
118 } | 118 } |
119 CallJS(kMethodContextChanged, diff); | 119 CallJS(kMethodContextChanged, diff); |
120 } | 120 } |
121 | 121 |
122 } // namespace chromeos | 122 } // namespace chromeos |
OLD | NEW |