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/dom_ui/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 |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/bug_report_util.h" | 22 #include "chrome/browser/bug_report_util.h" |
23 #include "chrome/browser/dom_ui/web_ui_screenshot_source.h" | 23 #include "chrome/browser/dom_ui/web_ui_screenshot_source.h" |
24 #include "chrome/browser/tab_contents/tab_contents.h" | 24 #include "chrome/browser/tab_contents/tab_contents.h" |
25 #include "chrome/browser/ui/browser.h" | 25 #include "chrome/browser/ui/browser.h" |
26 #include "chrome/browser/ui/browser_list.h" | 26 #include "chrome/browser/ui/browser_list.h" |
27 #include "chrome/browser/ui/browser_window.h" | 27 #include "chrome/browser/ui/browser_window.h" |
28 #include "chrome/browser/ui/window_snapshot/window_snapshot.h" | 28 #include "chrome/browser/ui/window_snapshot/window_snapshot.h" |
29 #include "chrome/common/chrome_paths.h" | 29 #include "chrome/common/chrome_paths.h" |
30 #include "chrome/common/jstemplate_builder.h" | 30 #include "chrome/common/jstemplate_builder.h" |
31 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
32 #include "gfx/rect.h" | |
33 #include "grit/browser_resources.h" | 32 #include "grit/browser_resources.h" |
34 #include "grit/chromium_strings.h" | 33 #include "grit/chromium_strings.h" |
35 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
36 #include "grit/locale_settings.h" | 35 #include "grit/locale_settings.h" |
37 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
38 #include "ui/base/resource/resource_bundle.h" | 37 #include "ui/base/resource/resource_bundle.h" |
| 38 #include "ui/gfx/rect.h" |
39 | 39 |
40 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
41 #include "base/file_util.h" | 41 #include "base/file_util.h" |
42 #include "base/path_service.h" | 42 #include "base/path_service.h" |
43 #include "base/synchronization/waitable_event.h" | 43 #include "base/synchronization/waitable_event.h" |
44 #include "chrome/browser/chromeos/cros/cros_library.h" | 44 #include "chrome/browser/chromeos/cros/cros_library.h" |
45 #include "chrome/browser/chromeos/cros/syslogs_library.h" | 45 #include "chrome/browser/chromeos/cros/syslogs_library.h" |
46 #include "chrome/browser/chromeos/login/user_manager.h" | 46 #include "chrome/browser/chromeos/login/user_manager.h" |
47 #endif | 47 #endif |
48 | 48 |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 BugReportUIHTMLSource* html_source = | 749 BugReportUIHTMLSource* html_source = |
750 new BugReportUIHTMLSource(handler->Init()); | 750 new BugReportUIHTMLSource(handler->Init()); |
751 // Set up the chrome://bugreport/ source. | 751 // Set up the chrome://bugreport/ source. |
752 BrowserThread::PostTask( | 752 BrowserThread::PostTask( |
753 BrowserThread::IO, FROM_HERE, | 753 BrowserThread::IO, FROM_HERE, |
754 NewRunnableMethod( | 754 NewRunnableMethod( |
755 ChromeURLDataManager::GetInstance(), | 755 ChromeURLDataManager::GetInstance(), |
756 &ChromeURLDataManager::AddDataSource, | 756 &ChromeURLDataManager::AddDataSource, |
757 make_scoped_refptr(html_source))); | 757 make_scoped_refptr(html_source))); |
758 } | 758 } |
OLD | NEW |