| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| 11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
| 12 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
| 16 #include "base/singleton.h" | 16 #include "base/singleton.h" |
| 17 #include "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
| 18 #include "base/string_piece.h" | 18 #include "base/string_piece.h" |
| 19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
| 20 #include "base/values.h" | 20 #include "base/values.h" |
| 21 #include "base/weak_ptr.h" | 21 #include "base/weak_ptr.h" |
| 22 #include "chrome/browser/browser.h" | |
| 23 #include "chrome/browser/browser_list.h" | |
| 24 #include "chrome/browser/browser_thread.h" | 22 #include "chrome/browser/browser_thread.h" |
| 25 #include "chrome/browser/bug_report_data.h" | 23 #include "chrome/browser/bug_report_data.h" |
| 26 #include "chrome/browser/bug_report_util.h" | 24 #include "chrome/browser/bug_report_util.h" |
| 27 #include "chrome/browser/dom_ui/dom_ui_screenshot_source.h" | 25 #include "chrome/browser/dom_ui/dom_ui_screenshot_source.h" |
| 28 #include "chrome/browser/tab_contents/tab_contents.h" | 26 #include "chrome/browser/tab_contents/tab_contents.h" |
| 27 #include "chrome/browser/ui/browser.h" |
| 28 #include "chrome/browser/ui/browser_list.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" | 32 #include "gfx/rect.h" |
| 33 #include "views/window/window.h" | 33 #include "views/window/window.h" |
| 34 | 34 |
| 35 #include "grit/browser_resources.h" | 35 #include "grit/browser_resources.h" |
| 36 #include "grit/chromium_strings.h" | 36 #include "grit/chromium_strings.h" |
| 37 #include "grit/generated_resources.h" | 37 #include "grit/generated_resources.h" |
| 38 #include "grit/locale_settings.h" | 38 #include "grit/locale_settings.h" |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 BugReportUIHTMLSource* html_source = | 705 BugReportUIHTMLSource* html_source = |
| 706 new BugReportUIHTMLSource(handler->Init()); | 706 new BugReportUIHTMLSource(handler->Init()); |
| 707 // Set up the chrome://bugreport/ source. | 707 // Set up the chrome://bugreport/ source. |
| 708 BrowserThread::PostTask( | 708 BrowserThread::PostTask( |
| 709 BrowserThread::IO, FROM_HERE, | 709 BrowserThread::IO, FROM_HERE, |
| 710 NewRunnableMethod( | 710 NewRunnableMethod( |
| 711 Singleton<ChromeURLDataManager>::get(), | 711 Singleton<ChromeURLDataManager>::get(), |
| 712 &ChromeURLDataManager::AddDataSource, | 712 &ChromeURLDataManager::AddDataSource, |
| 713 make_scoped_refptr(html_source))); | 713 make_scoped_refptr(html_source))); |
| 714 } | 714 } |
| OLD | NEW |