Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.cc

Issue 2289543004: Remove more unused grit includes in chrome/ (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/cast/cast_ui.cc ('k') | chrome/browser/ui/webui/device_log_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_hand ler.h" 9 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_hand ler.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
11 #include "chrome/grit/browser_resources.h" 11 #include "chrome/grit/browser_resources.h"
12 #include "chrome/grit/generated_resources.h"
13 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
14 #include "content/public/browser/web_ui.h" 13 #include "content/public/browser/web_ui.h"
15 #include "content/public/browser/web_ui_data_source.h" 14 #include "content/public/browser/web_ui_data_source.h"
16 15
17 namespace { 16 namespace {
18 17
19 // Create data source for chrome://device-emulator/. 18 // Create data source for chrome://device-emulator/.
20 content::WebUIDataSource* CreateDeviceEmulatorUIDataSource() { 19 content::WebUIDataSource* CreateDeviceEmulatorUIDataSource() {
21 content::WebUIDataSource* html = 20 content::WebUIDataSource* html =
22 content::WebUIDataSource::Create(chrome::kChromeUIDeviceEmulatorHost); 21 content::WebUIDataSource::Create(chrome::kChromeUIDeviceEmulatorHost);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 DeviceEmulatorUI::DeviceEmulatorUI(content::WebUI* web_ui) 56 DeviceEmulatorUI::DeviceEmulatorUI(content::WebUI* web_ui)
58 : WebUIController(web_ui) { 57 : WebUIController(web_ui) {
59 web_ui->AddMessageHandler(new chromeos::DeviceEmulatorMessageHandler()); 58 web_ui->AddMessageHandler(new chromeos::DeviceEmulatorMessageHandler());
60 59
61 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), 60 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(),
62 CreateDeviceEmulatorUIDataSource()); 61 CreateDeviceEmulatorUIDataSource());
63 } 62 }
64 63
65 DeviceEmulatorUI::~DeviceEmulatorUI() { 64 DeviceEmulatorUI::~DeviceEmulatorUI() {
66 } 65 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/cast/cast_ui.cc ('k') | chrome/browser/ui/webui/device_log_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698