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

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: 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 (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/translate/core/common/translate_switches.h" 136 #include "components/translate/core/common/translate_switches.h"
136 #include "components/url_formatter/url_fixer.h" 137 #include "components/url_formatter/url_fixer.h"
137 #include "components/variations/variations_associated_data.h" 138 #include "components/variations/variations_associated_data.h"
138 #include "components/version_info/version_info.h" 139 #include "components/version_info/version_info.h"
139 #include "content/public/browser/browser_child_process_host.h" 140 #include "content/public/browser/browser_child_process_host.h"
140 #include "content/public/browser/browser_main_parts.h" 141 #include "content/public/browser/browser_main_parts.h"
141 #include "content/public/browser/browser_ppapi_host.h" 142 #include "content/public/browser/browser_ppapi_host.h"
142 #include "content/public/browser/browser_thread.h" 143 #include "content/public/browser/browser_thread.h"
143 #include "content/public/browser/browser_url_handler.h" 144 #include "content/public/browser/browser_url_handler.h"
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 #endif 1627 #endif
1627 switches::kAllowInsecureLocalhost, 1628 switches::kAllowInsecureLocalhost,
1628 switches::kAppsGalleryURL, 1629 switches::kAppsGalleryURL,
1629 switches::kCloudPrintURL, 1630 switches::kCloudPrintURL,
1630 switches::kCloudPrintXmppEndpoint, 1631 switches::kCloudPrintXmppEndpoint,
1631 switches::kDisableBundledPpapiFlash, 1632 switches::kDisableBundledPpapiFlash,
1632 switches::kDisableCastStreamingHWEncoding, 1633 switches::kDisableCastStreamingHWEncoding,
1633 switches::kDisableJavaScriptHarmonyShipping, 1634 switches::kDisableJavaScriptHarmonyShipping,
1634 switches::kDisableNewBookmarkApps, 1635 switches::kDisableNewBookmarkApps,
1635 #if defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID) 1636 #if defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID)
1636 switches::kEnableAndroidSpellChecker, 1637 spellcheck::switches::kEnableAndroidSpellChecker,
1637 #endif 1638 #endif
1638 switches::kEnableBenchmarking, 1639 switches::kEnableBenchmarking,
1639 switches::kEnableNaCl, 1640 switches::kEnableNaCl,
1640 #if !defined(DISABLE_NACL) 1641 #if !defined(DISABLE_NACL)
1641 switches::kEnableNaClDebug, 1642 switches::kEnableNaClDebug,
1642 switches::kEnableNaClNonSfiMode, 1643 switches::kEnableNaClNonSfiMode,
1643 #endif 1644 #endif
1644 switches::kEnableNetBenchmarking, 1645 switches::kEnableNetBenchmarking,
1645 switches::kEnableNewBookmarkApps, 1646 switches::kEnableNewBookmarkApps,
1646 switches::kEnableWasm, 1647 switches::kEnableWasm,
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
3047 if (channel <= kMaxDisableEncryptionChannel) { 3048 if (channel <= kMaxDisableEncryptionChannel) {
3048 static const char* const kWebRtcDevSwitchNames[] = { 3049 static const char* const kWebRtcDevSwitchNames[] = {
3049 switches::kDisableWebRtcEncryption, 3050 switches::kDisableWebRtcEncryption,
3050 }; 3051 };
3051 to_command_line->CopySwitchesFrom(from_command_line, 3052 to_command_line->CopySwitchesFrom(from_command_line,
3052 kWebRtcDevSwitchNames, 3053 kWebRtcDevSwitchNames,
3053 arraysize(kWebRtcDevSwitchNames)); 3054 arraysize(kWebRtcDevSwitchNames));
3054 } 3055 }
3055 } 3056 }
3056 #endif // defined(ENABLE_WEBRTC) 3057 #endif // defined(ENABLE_WEBRTC)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698