OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/slow_trace_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
13 #include "components/feedback/tracing_manager.h" | 13 #include "components/feedback/tracing_manager.h" |
14 #include "content/public/browser/url_data_source.h" | 14 #include "content/public/browser/url_data_source.h" |
15 #include "content/public/browser/web_ui.h" | 15 #include "content/public/browser/web_ui.h" |
16 #include "grit/theme_resources.h" | |
17 #include "ui/base/resource/resource_bundle.h" | |
18 | 16 |
19 namespace chromeos { | 17 namespace chromeos { |
20 | 18 |
21 //////////////////////////////////////////////////////////////////////////////// | 19 //////////////////////////////////////////////////////////////////////////////// |
22 // | 20 // |
23 // SlowTraceSource | 21 // SlowTraceSource |
24 // | 22 // |
25 //////////////////////////////////////////////////////////////////////////////// | 23 //////////////////////////////////////////////////////////////////////////////// |
26 | 24 |
27 SlowTraceSource::SlowTraceSource() { | 25 SlowTraceSource::SlowTraceSource() { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 SlowTraceController::SlowTraceController(content::WebUI* web_ui) | 70 SlowTraceController::SlowTraceController(content::WebUI* web_ui) |
73 : WebUIController(web_ui) { | 71 : WebUIController(web_ui) { |
74 SlowTraceSource* html_source = new SlowTraceSource(); | 72 SlowTraceSource* html_source = new SlowTraceSource(); |
75 | 73 |
76 // Set up the chrome://slow_trace/ source. | 74 // Set up the chrome://slow_trace/ source. |
77 Profile* profile = Profile::FromWebUI(web_ui); | 75 Profile* profile = Profile::FromWebUI(web_ui); |
78 content::URLDataSource::Add(profile, html_source); | 76 content::URLDataSource::Add(profile, html_source); |
79 } | 77 } |
80 | 78 |
81 } // namespace chromeos | 79 } // namespace chromeos |
OLD | NEW |