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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2166683003: Componentize spellcheck [1]: create component and move switches there. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + --no-find-copies 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/spellchecker/feedback_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 #include "components/error_page/common/error_page_switches.h" 124 #include "components/error_page/common/error_page_switches.h"
125 #include "components/google/core/browser/google_util.h" 125 #include "components/google/core/browser/google_util.h"
126 #include "components/metrics/client_info.h" 126 #include "components/metrics/client_info.h"
127 #include "components/net_log/chrome_net_log.h" 127 #include "components/net_log/chrome_net_log.h"
128 #include "components/pref_registry/pref_registry_syncable.h" 128 #include "components/pref_registry/pref_registry_syncable.h"
129 #include "components/prefs/pref_service.h" 129 #include "components/prefs/pref_service.h"
130 #include "components/prefs/scoped_user_pref_update.h" 130 #include "components/prefs/scoped_user_pref_update.h"
131 #include "components/rappor/rappor_utils.h" 131 #include "components/rappor/rappor_utils.h"
132 #include "components/security_interstitials/core/ssl_error_ui.h" 132 #include "components/security_interstitials/core/ssl_error_ui.h"
133 #include "components/signin/core/common/profile_management_switches.h" 133 #include "components/signin/core/common/profile_management_switches.h"
134 #include "components/spellcheck/common/spellcheck_switches.h"
134 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" 135 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h"
135 #include "components/subresource_filter/content/browser/subresource_filter_navig ation_throttle.h" 136 #include "components/subresource_filter/content/browser/subresource_filter_navig ation_throttle.h"
136 #include "components/translate/core/common/translate_switches.h" 137 #include "components/translate/core/common/translate_switches.h"
137 #include "components/url_formatter/url_fixer.h" 138 #include "components/url_formatter/url_fixer.h"
138 #include "components/variations/variations_associated_data.h" 139 #include "components/variations/variations_associated_data.h"
139 #include "components/version_info/version_info.h" 140 #include "components/version_info/version_info.h"
140 #include "content/public/browser/browser_child_process_host.h" 141 #include "content/public/browser/browser_child_process_host.h"
141 #include "content/public/browser/browser_main_parts.h" 142 #include "content/public/browser/browser_main_parts.h"
142 #include "content/public/browser/browser_ppapi_host.h" 143 #include "content/public/browser/browser_ppapi_host.h"
143 #include "content/public/browser/browser_thread.h" 144 #include "content/public/browser/browser_thread.h"
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1620 #endif 1621 #endif
1621 switches::kAllowInsecureLocalhost, 1622 switches::kAllowInsecureLocalhost,
1622 switches::kAppsGalleryURL, 1623 switches::kAppsGalleryURL,
1623 switches::kCloudPrintURL, 1624 switches::kCloudPrintURL,
1624 switches::kCloudPrintXmppEndpoint, 1625 switches::kCloudPrintXmppEndpoint,
1625 switches::kDisableBundledPpapiFlash, 1626 switches::kDisableBundledPpapiFlash,
1626 switches::kDisableCastStreamingHWEncoding, 1627 switches::kDisableCastStreamingHWEncoding,
1627 switches::kDisableJavaScriptHarmonyShipping, 1628 switches::kDisableJavaScriptHarmonyShipping,
1628 switches::kDisableNewBookmarkApps, 1629 switches::kDisableNewBookmarkApps,
1629 #if defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID) 1630 #if defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID)
1630 switches::kEnableAndroidSpellChecker, 1631 spellcheck::switches::kEnableAndroidSpellChecker,
1631 #endif 1632 #endif
1632 switches::kEnableBenchmarking, 1633 switches::kEnableBenchmarking,
1633 switches::kEnableNaCl, 1634 switches::kEnableNaCl,
1634 #if !defined(DISABLE_NACL) 1635 #if !defined(DISABLE_NACL)
1635 switches::kEnableNaClDebug, 1636 switches::kEnableNaClDebug,
1636 switches::kEnableNaClNonSfiMode, 1637 switches::kEnableNaClNonSfiMode,
1637 #endif 1638 #endif
1638 switches::kEnableNetBenchmarking, 1639 switches::kEnableNetBenchmarking,
1639 switches::kEnableNewBookmarkApps, 1640 switches::kEnableNewBookmarkApps,
1640 switches::kEnableWasm, 1641 switches::kEnableWasm,
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
3056 if (channel <= kMaxDisableEncryptionChannel) { 3057 if (channel <= kMaxDisableEncryptionChannel) {
3057 static const char* const kWebRtcDevSwitchNames[] = { 3058 static const char* const kWebRtcDevSwitchNames[] = {
3058 switches::kDisableWebRtcEncryption, 3059 switches::kDisableWebRtcEncryption,
3059 }; 3060 };
3060 to_command_line->CopySwitchesFrom(from_command_line, 3061 to_command_line->CopySwitchesFrom(from_command_line,
3061 kWebRtcDevSwitchNames, 3062 kWebRtcDevSwitchNames,
3062 arraysize(kWebRtcDevSwitchNames)); 3063 arraysize(kWebRtcDevSwitchNames));
3063 } 3064 }
3064 } 3065 }
3065 #endif // defined(ENABLE_WEBRTC) 3066 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/spellchecker/feedback_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698