| 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 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/common/jstemplate_builder.h" | 29 #include "chrome/common/jstemplate_builder.h" |
| 30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
| 31 #include "gfx/rect.h" | 31 #include "gfx/rect.h" |
| 32 #include "grit/browser_resources.h" | 32 #include "grit/browser_resources.h" |
| 33 #include "grit/chromium_strings.h" | 33 #include "grit/chromium_strings.h" |
| 34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
| 35 #include "grit/locale_settings.h" | 35 #include "grit/locale_settings.h" |
| 36 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
| 37 #include "ui/base/resource/resource_bundle.h" | 37 #include "ui/base/resource/resource_bundle.h" |
| 38 | 38 |
| 39 #if defined(USE_X11) | |
| 40 #include "ui/base/x/x11_util.h" | |
| 41 #elif defined(OS_MACOSX) | |
| 42 #include "base/mac/mac_util.h" | |
| 43 #elif defined(OS_WIN) | |
| 44 #include "app/win/win_util.h" | |
| 45 #endif | |
| 46 | |
| 47 #if defined(TOOLKIT_VIEWS) | 39 #if defined(TOOLKIT_VIEWS) |
| 48 #include "views/window/window.h" | 40 #include "views/window/window.h" |
| 49 #endif | 41 #endif |
| 50 | 42 |
| 51 #if defined(OS_CHROMEOS) | 43 #if defined(OS_CHROMEOS) |
| 52 #include "base/file_util.h" | 44 #include "base/file_util.h" |
| 53 #include "base/path_service.h" | 45 #include "base/path_service.h" |
| 54 #include "base/synchronization/waitable_event.h" | 46 #include "base/synchronization/waitable_event.h" |
| 55 #include "chrome/browser/chromeos/cros/cros_library.h" | 47 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 56 #include "chrome/browser/chromeos/cros/syslogs_library.h" | 48 #include "chrome/browser/chromeos/cros/syslogs_library.h" |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 BugReportUIHTMLSource* html_source = | 751 BugReportUIHTMLSource* html_source = |
| 760 new BugReportUIHTMLSource(handler->Init()); | 752 new BugReportUIHTMLSource(handler->Init()); |
| 761 // Set up the chrome://bugreport/ source. | 753 // Set up the chrome://bugreport/ source. |
| 762 BrowserThread::PostTask( | 754 BrowserThread::PostTask( |
| 763 BrowserThread::IO, FROM_HERE, | 755 BrowserThread::IO, FROM_HERE, |
| 764 NewRunnableMethod( | 756 NewRunnableMethod( |
| 765 ChromeURLDataManager::GetInstance(), | 757 ChromeURLDataManager::GetInstance(), |
| 766 &ChromeURLDataManager::AddDataSource, | 758 &ChromeURLDataManager::AddDataSource, |
| 767 make_scoped_refptr(html_source))); | 759 make_scoped_refptr(html_source))); |
| 768 } | 760 } |
| OLD | NEW |