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

Unified Diff: trunk/src/chrome/browser/chrome_browser_main.cc

Issue 130893005: Revert 243957 "Enable SDCH support over HTTPS if --enable-sdch=2..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/src/net/base/sdch_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/chrome_browser_main.cc
===================================================================
--- trunk/src/chrome/browser/chrome_browser_main.cc (revision 244037)
+++ trunk/src/chrome/browser/chrome_browser_main.cc (working copy)
@@ -1367,20 +1367,13 @@
browser_process_->intranet_redirect_detector();
GoogleSearchCounter::RegisterForNotifications();
+ // Disable SDCH filtering if switches::kEnableSdch is 0.
+ int sdch_enabled = 1;
if (parsed_command_line().HasSwitch(switches::kEnableSdch)) {
- // SDCH options via switches::kEnableSdch include:
- const int kSdchDisabled = 0;
- const int kSdchOverHttpEnabled = 1;
- const int kSdchOverBothHttpAndHttpsEnabled = 2;
- int sdch_enabled = kSdchOverHttpEnabled;
- if (base::StringToInt(parsed_command_line().GetSwitchValueASCII(
- switches::kEnableSdch), &sdch_enabled)) {
- if (sdch_enabled == kSdchDisabled) {
- net::SdchManager::EnableSdchSupport(false);
- } else if (sdch_enabled == kSdchOverBothHttpAndHttpsEnabled) {
- net::SdchManager::EnableSecureSchemeSupport(true);
- }
- }
+ base::StringToInt(parsed_command_line().GetSwitchValueASCII(
+ switches::kEnableSdch), &sdch_enabled);
+ if (!sdch_enabled)
+ net::SdchManager::EnableSdchSupport(false);
}
if (parsed_command_line().HasSwitch(switches::kEnableWatchdog))
« no previous file with comments | « no previous file | trunk/src/net/base/sdch_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698