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

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

Issue 2116673002: [ios] Moved WebUI provider code to ios/web. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 years, 5 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/flags_ui.h" 5 #include "ios/chrome/browser/ui/webui/flags_ui.h"
6 6
7 #include <string> 7 #include <string>
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/values.h" 14 #include "base/values.h"
15 #include "components/flags_ui/flags_ui_constants.h" 15 #include "components/flags_ui/flags_ui_constants.h"
16 #include "components/flags_ui/flags_ui_pref_names.h" 16 #include "components/flags_ui/flags_ui_pref_names.h"
17 #include "components/flags_ui/pref_service_flags_storage.h" 17 #include "components/flags_ui/pref_service_flags_storage.h"
18 #include "components/grit/components_resources.h" 18 #include "components/grit/components_resources.h"
19 #include "components/grit/components_scaled_resources.h" 19 #include "components/grit/components_scaled_resources.h"
20 #include "components/prefs/pref_registry_simple.h" 20 #include "components/prefs/pref_registry_simple.h"
21 #include "components/prefs/pref_service.h" 21 #include "components/prefs/pref_service.h"
22 #include "components/strings/grit/components_chromium_strings.h" 22 #include "components/strings/grit/components_chromium_strings.h"
23 #include "components/strings/grit/components_google_chrome_strings.h" 23 #include "components/strings/grit/components_google_chrome_strings.h"
24 #include "components/strings/grit/components_strings.h" 24 #include "components/strings/grit/components_strings.h"
25 #include "components/version_info/version_info.h" 25 #include "components/version_info/version_info.h"
26 #include "ios/chrome/browser/about_flags.h" 26 #include "ios/chrome/browser/about_flags.h"
27 #include "ios/chrome/browser/application_context.h" 27 #include "ios/chrome/browser/application_context.h"
28 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 28 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
29 #include "ios/chrome/browser/chrome_url_constants.h" 29 #include "ios/chrome/browser/chrome_url_constants.h"
30 #include "ios/public/provider/web/web_ui_ios.h"
31 #include "ios/public/provider/web/web_ui_ios_message_handler.h"
32 #include "ios/web/public/web_ui_ios_data_source.h" 30 #include "ios/web/public/web_ui_ios_data_source.h"
33 #include "ios/web/public/web_ui_ios_data_source.h" 31 #include "ios/web/public/web_ui_ios_data_source.h"
32 #include "ios/web/public/webui/web_ui_ios.h"
33 #include "ios/web/public/webui/web_ui_ios_message_handler.h"
34 #include "ui/base/l10n/l10n_util.h" 34 #include "ui/base/l10n/l10n_util.h"
35 #include "ui/base/resource/resource_bundle.h" 35 #include "ui/base/resource/resource_bundle.h"
36 36
37 namespace { 37 namespace {
38 38
39 web::WebUIIOSDataSource* CreateFlagsUIHTMLSource( 39 web::WebUIIOSDataSource* CreateFlagsUIHTMLSource(
40 BaseFlagsUI::FlagsUIKind flags_ui_kind) { 40 BaseFlagsUI::FlagsUIKind flags_ui_kind) {
41 web::WebUIIOSDataSource* source = web::WebUIIOSDataSource::Create( 41 web::WebUIIOSDataSource* source = web::WebUIIOSDataSource::Create(
42 flags_ui_kind == BaseFlagsUI::FLAGS_UI_APPLE ? kChromeUIAppleFlagsHost 42 flags_ui_kind == BaseFlagsUI::FLAGS_UI_APPLE ? kChromeUIAppleFlagsHost
43 : kChromeUIFlagsHost); 43 : kChromeUIFlagsHost);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 /////////////////////////////////////////////////////////////////////////////// 253 ///////////////////////////////////////////////////////////////////////////////
254 // 254 //
255 // AppleFlagsUI 255 // AppleFlagsUI
256 // 256 //
257 /////////////////////////////////////////////////////////////////////////////// 257 ///////////////////////////////////////////////////////////////////////////////
258 258
259 AppleFlagsUI::AppleFlagsUI(web::WebUIIOS* web_ui) 259 AppleFlagsUI::AppleFlagsUI(web::WebUIIOS* web_ui)
260 : BaseFlagsUI(web_ui, BaseFlagsUI::FLAGS_UI_APPLE) {} 260 : BaseFlagsUI(web_ui, BaseFlagsUI::FLAGS_UI_APPLE) {}
261 261
262 AppleFlagsUI::~AppleFlagsUI() {} 262 AppleFlagsUI::~AppleFlagsUI() {}
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/webui/flags_ui.h ('k') | ios/chrome/browser/ui/webui/gcm/gcm_internals_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698