Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: ios/chrome/browser/ui/webui/crashes_ui.cc

Issue 2617243002: Remove ScopedVector from ios/. (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/settings/save_passwords_collection_view_controller.mm ('k') | ios/chrome/browser/ui/webui/flags_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698