| 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 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "app/win/win_util.h" | 44 #include "app/win/win_util.h" |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 #if defined(TOOLKIT_VIEWS) | 47 #if defined(TOOLKIT_VIEWS) |
| 48 #include "views/window/window.h" | 48 #include "views/window/window.h" |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 #if defined(OS_CHROMEOS) | 51 #if defined(OS_CHROMEOS) |
| 52 #include "base/file_util.h" | 52 #include "base/file_util.h" |
| 53 #include "base/path_service.h" | 53 #include "base/path_service.h" |
| 54 #include "base/waitable_event.h" | 54 #include "base/synchronization/waitable_event.h" |
| 55 #include "chrome/browser/chromeos/cros/cros_library.h" | 55 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 56 #include "chrome/browser/chromeos/cros/syslogs_library.h" | 56 #include "chrome/browser/chromeos/cros/syslogs_library.h" |
| 57 #include "chrome/browser/chromeos/login/user_manager.h" | 57 #include "chrome/browser/chromeos/login/user_manager.h" |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 namespace { | 60 namespace { |
| 61 | 61 |
| 62 const char kScreenshotBaseUrl[] = "chrome://screenshots/"; | 62 const char kScreenshotBaseUrl[] = "chrome://screenshots/"; |
| 63 const char kCurrentScreenshotUrl[] = "chrome://screenshots/current"; | 63 const char kCurrentScreenshotUrl[] = "chrome://screenshots/current"; |
| 64 #if defined(OS_CHROMEOS) | 64 #if defined(OS_CHROMEOS) |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 BugReportUIHTMLSource* html_source = | 809 BugReportUIHTMLSource* html_source = |
| 810 new BugReportUIHTMLSource(handler->Init()); | 810 new BugReportUIHTMLSource(handler->Init()); |
| 811 // Set up the chrome://bugreport/ source. | 811 // Set up the chrome://bugreport/ source. |
| 812 BrowserThread::PostTask( | 812 BrowserThread::PostTask( |
| 813 BrowserThread::IO, FROM_HERE, | 813 BrowserThread::IO, FROM_HERE, |
| 814 NewRunnableMethod( | 814 NewRunnableMethod( |
| 815 ChromeURLDataManager::GetInstance(), | 815 ChromeURLDataManager::GetInstance(), |
| 816 &ChromeURLDataManager::AddDataSource, | 816 &ChromeURLDataManager::AddDataSource, |
| 817 make_scoped_refptr(html_source))); | 817 make_scoped_refptr(html_source))); |
| 818 } | 818 } |
| OLD | NEW |