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

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

Issue 3014013: Negotiate on by default on all platforms. (Closed)
Patch Set: Created 10 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 | « no previous file | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/leak_tracker.h" 7 #include "base/leak_tracker.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chrome_thread.h" 10 #include "chrome/browser/chrome_thread.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 if (command_line.HasSwitch(switches::kAuthServerWhitelist)) { 267 if (command_line.HasSwitch(switches::kAuthServerWhitelist)) {
268 std::string auth_server_whitelist = 268 std::string auth_server_whitelist =
269 command_line.GetSwitchValueASCII(switches::kAuthServerWhitelist); 269 command_line.GetSwitchValueASCII(switches::kAuthServerWhitelist);
270 270
271 // Create a whitelist filter. 271 // Create a whitelist filter.
272 auth_filter = new net::HttpAuthFilterWhitelist(); 272 auth_filter = new net::HttpAuthFilterWhitelist();
273 auth_filter->SetWhitelist(auth_server_whitelist); 273 auth_filter->SetWhitelist(auth_server_whitelist);
274 } 274 }
275 275
276 // Set the flag that enables or disables the Negotiate auth handler. 276 // Set the flag that enables or disables the Negotiate auth handler.
277 #if defined(OS_WIN)
278 static const bool kNegotiateAuthEnabledDefault = true; 277 static const bool kNegotiateAuthEnabledDefault = true;
279 #else 278
280 static const bool kNegotiateAuthEnabledDefault = false;
281 #endif
282 bool negotiate_auth_enabled = kNegotiateAuthEnabledDefault; 279 bool negotiate_auth_enabled = kNegotiateAuthEnabledDefault;
283 if (command_line.HasSwitch(switches::kExperimentalEnableNegotiateAuth)) { 280 if (command_line.HasSwitch(switches::kExperimentalEnableNegotiateAuth)) {
284 std::string enable_negotiate_auth = command_line.GetSwitchValueASCII( 281 std::string enable_negotiate_auth = command_line.GetSwitchValueASCII(
285 switches::kExperimentalEnableNegotiateAuth); 282 switches::kExperimentalEnableNegotiateAuth);
286 // Enabled if no value, or value is 'true'. Disabled otherwise. 283 // Enabled if no value, or value is 'true'. Disabled otherwise.
287 negotiate_auth_enabled = 284 negotiate_auth_enabled =
288 enable_negotiate_auth.empty() || 285 enable_negotiate_auth.empty() ||
289 (StringToLowerASCII(enable_negotiate_auth) == "true"); 286 (StringToLowerASCII(enable_negotiate_auth) == "true");
290 } 287 }
291 288
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 net::HostCache* host_cache = 366 net::HostCache* host_cache =
370 globals_->host_resolver.get()->GetAsHostResolverImpl()->cache(); 367 globals_->host_resolver.get()->GetAsHostResolverImpl()->cache();
371 if (host_cache) 368 if (host_cache)
372 host_cache->clear(); 369 host_cache->clear();
373 } 370 }
374 // Clear all of the passively logged data. 371 // Clear all of the passively logged data.
375 // TODO(eroman): this is a bit heavy handed, really all we need to do is 372 // TODO(eroman): this is a bit heavy handed, really all we need to do is
376 // clear the data pertaining to off the record context. 373 // clear the data pertaining to off the record context.
377 globals_->net_log->passive_collector()->Clear(); 374 globals_->net_log->passive_collector()->Clear();
378 } 375 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698