Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/emulator/device_emulator_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h" |
| 6 | 6 |
| 7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_hand ler.h" | 10 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_hand ler.h" |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 return html; | 38 return html; |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace | 41 } // namespace |
| 42 | 42 |
| 43 DeviceEmulatorUI::DeviceEmulatorUI(content::WebUI* web_ui) | 43 DeviceEmulatorUI::DeviceEmulatorUI(content::WebUI* web_ui) |
| 44 : WebUIController(web_ui) { | 44 : WebUIController(web_ui) { |
| 45 DeviceEmulatorMessageHandler* handler = new DeviceEmulatorMessageHandler(); | 45 DeviceEmulatorMessageHandler* handler = new DeviceEmulatorMessageHandler(); |
| 46 handler->Init(); | 46 handler->Init(); |
| 47 web_ui->AddMessageHandler(handler); | 47 web_ui->AddMessageHandler(handler); |
| 48 | |
|
oshima
2015/07/29 00:50:48
revert this file?
mozartalouis
2015/07/29 21:06:04
Done.
| |
| 49 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), | 48 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), |
| 50 CreateDeviceEmulatorUIDataSource()); | 49 CreateDeviceEmulatorUIDataSource()); |
| 51 } | 50 } |
| 52 | 51 |
| 53 DeviceEmulatorUI::~DeviceEmulatorUI() { | 52 DeviceEmulatorUI::~DeviceEmulatorUI() { |
| 54 } | 53 } |
| OLD | NEW |