OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/ui/webui/crashes_ui.h" | 5 #include "ios/chrome/browser/ui/webui/crashes_ui.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/macros.h" |
9 #include "base/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
10 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
11 #include "base/values.h" | 14 #include "base/values.h" |
12 #include "components/crash/core/browser/crashes_ui_util.h" | 15 #include "components/crash/core/browser/crashes_ui_util.h" |
13 #include "components/version_info/version_info.h" | 16 #include "components/version_info/version_info.h" |
14 #include "grit/components_chromium_strings.h" | 17 #include "grit/components_chromium_strings.h" |
15 #include "grit/components_google_chrome_strings.h" | 18 #include "grit/components_google_chrome_strings.h" |
16 #include "grit/components_resources.h" | 19 #include "grit/components_resources.h" |
17 #include "grit/components_scaled_resources.h" | 20 #include "grit/components_scaled_resources.h" |
18 #include "grit/components_strings.h" | 21 #include "grit/components_strings.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui), | 146 web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui), |
144 CreateCrashesUIHTMLSource()); | 147 CreateCrashesUIHTMLSource()); |
145 } | 148 } |
146 | 149 |
147 // static | 150 // static |
148 base::RefCountedMemory* CrashesUI::GetFaviconResourceBytes( | 151 base::RefCountedMemory* CrashesUI::GetFaviconResourceBytes( |
149 ui::ScaleFactor scale_factor) { | 152 ui::ScaleFactor scale_factor) { |
150 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( | 153 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( |
151 IDR_CRASH_SAD_FAVICON, scale_factor); | 154 IDR_CRASH_SAD_FAVICON, scale_factor); |
152 } | 155 } |
OLD | NEW |