| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/crashes_ui.h" | 5 #include "chrome/browser/ui/webui/crashes_ui.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/sys_info.h" | 14 #include "base/sys_info.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "chrome/browser/crash_upload_list.h" | 17 #include "chrome/browser/crash_upload_list/crash_upload_list.h" |
| 18 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" | 18 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
| 21 #include "chrome/grit/chromium_strings.h" | 21 #include "chrome/grit/chromium_strings.h" |
| 22 #include "chrome/grit/generated_resources.h" | 22 #include "chrome/grit/generated_resources.h" |
| 23 #include "chrome/grit/google_chrome_strings.h" | 23 #include "chrome/grit/google_chrome_strings.h" |
| 24 #include "components/crash/core/browser/crashes_ui_util.h" | 24 #include "components/crash/core/browser/crashes_ui_util.h" |
| 25 #include "components/version_info/version_info.h" | 25 #include "components/version_info/version_info.h" |
| 26 #include "content/public/browser/web_contents.h" | 26 #include "content/public/browser/web_contents.h" |
| 27 #include "content/public/browser/web_ui.h" | 27 #include "content/public/browser/web_ui.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 Profile* profile = Profile::FromWebUI(web_ui); | 197 Profile* profile = Profile::FromWebUI(web_ui); |
| 198 content::WebUIDataSource::Add(profile, CreateCrashesUIHTMLSource()); | 198 content::WebUIDataSource::Add(profile, CreateCrashesUIHTMLSource()); |
| 199 } | 199 } |
| 200 | 200 |
| 201 // static | 201 // static |
| 202 base::RefCountedMemory* CrashesUI::GetFaviconResourceBytes( | 202 base::RefCountedMemory* CrashesUI::GetFaviconResourceBytes( |
| 203 ui::ScaleFactor scale_factor) { | 203 ui::ScaleFactor scale_factor) { |
| 204 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( | 204 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( |
| 205 IDR_CRASH_SAD_FAVICON, scale_factor); | 205 IDR_CRASH_SAD_FAVICON, scale_factor); |
| 206 } | 206 } |
| OLD | NEW |