| 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> | 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/ptr_util.h" | 
| 12 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" | 
| 13 #include "base/sys_info.h" | 14 #include "base/sys_info.h" | 
| 14 #include "base/values.h" | 15 #include "base/values.h" | 
| 15 #include "components/crash/core/browser/crashes_ui_util.h" | 16 #include "components/crash/core/browser/crashes_ui_util.h" | 
| 16 #include "components/grit/components_resources.h" | 17 #include "components/grit/components_resources.h" | 
| 17 #include "components/strings/grit/components_chromium_strings.h" | 18 #include "components/strings/grit/components_chromium_strings.h" | 
| 18 #include "components/strings/grit/components_strings.h" | 19 #include "components/strings/grit/components_strings.h" | 
| 19 #include "components/version_info/version_info.h" | 20 #include "components/version_info/version_info.h" | 
| 20 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 21 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 
| 21 #include "ios/chrome/browser/chrome_url_constants.h" | 22 #include "ios/chrome/browser/chrome_url_constants.h" | 
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 139 | 140 | 
| 140 }  // namespace | 141 }  // namespace | 
| 141 | 142 | 
| 142 /////////////////////////////////////////////////////////////////////////////// | 143 /////////////////////////////////////////////////////////////////////////////// | 
| 143 // | 144 // | 
| 144 // CrashesUI | 145 // CrashesUI | 
| 145 // | 146 // | 
| 146 /////////////////////////////////////////////////////////////////////////////// | 147 /////////////////////////////////////////////////////////////////////////////// | 
| 147 | 148 | 
| 148 CrashesUI::CrashesUI(web::WebUIIOS* web_ui) : web::WebUIIOSController(web_ui) { | 149 CrashesUI::CrashesUI(web::WebUIIOS* web_ui) : web::WebUIIOSController(web_ui) { | 
| 149   web_ui->AddMessageHandler(new CrashesDOMHandler()); | 150   web_ui->AddMessageHandler(base::MakeUnique<CrashesDOMHandler>()); | 
| 150 | 151 | 
| 151   // Set up the chrome://crashes/ source. | 152   // Set up the chrome://crashes/ source. | 
| 152   web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui), | 153   web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui), | 
| 153                                CreateCrashesUIHTMLSource()); | 154                                CreateCrashesUIHTMLSource()); | 
| 154 } | 155 } | 
| OLD | NEW | 
|---|