OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/dom_ui/bug_report_ui.h" | 5 #include "chrome/browser/webui/bug_report_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/singleton.h" | 14 #include "base/singleton.h" |
15 #include "base/string_number_conversions.h" | 15 #include "base/string_number_conversions.h" |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 BugReportHandler* handler = new BugReportHandler(tab); | 736 BugReportHandler* handler = new BugReportHandler(tab); |
737 AddMessageHandler((handler)->Attach(this)); | 737 AddMessageHandler((handler)->Attach(this)); |
738 | 738 |
739 // The handler's init will specify which html | 739 // The handler's init will specify which html |
740 // resource we'll display to the user | 740 // resource we'll display to the user |
741 BugReportUIHTMLSource* html_source = | 741 BugReportUIHTMLSource* html_source = |
742 new BugReportUIHTMLSource(handler->Init()); | 742 new BugReportUIHTMLSource(handler->Init()); |
743 // Set up the chrome://bugreport/ source. | 743 // Set up the chrome://bugreport/ source. |
744 tab->profile()->GetChromeURLDataManager()->AddDataSource(html_source); | 744 tab->profile()->GetChromeURLDataManager()->AddDataSource(html_source); |
745 } | 745 } |
OLD | NEW |