| 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/controller_pairing_screen_handl
er.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/controller_pairing_screen_handl
er.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 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 const char kJsScreenPath[] = "login.ControllerPairingScreen"; | 19 const char kJsScreenPath[] = "login.ControllerPairingScreen"; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 void ControllerPairingScreenHandler::OnContextChanged( | 165 void ControllerPairingScreenHandler::OnContextChanged( |
| 166 const base::DictionaryValue& diff) { | 166 const base::DictionaryValue& diff) { |
| 167 CallJS(kMethodContextChanged, diff); | 167 CallJS(kMethodContextChanged, diff); |
| 168 } | 168 } |
| 169 | 169 |
| 170 content::BrowserContext* ControllerPairingScreenHandler::GetBrowserContext() { | 170 content::BrowserContext* ControllerPairingScreenHandler::GetBrowserContext() { |
| 171 return web_ui()->GetWebContents()->GetBrowserContext(); | 171 return web_ui()->GetWebContents()->GetBrowserContext(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace chromeos | 174 } // namespace chromeos |
| OLD | NEW |