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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: Created 5 years, 6 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/profiles/profile_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 net::BackendType ChooseCacheBackendType() { 68 net::BackendType ChooseCacheBackendType() {
69 #if defined(OS_ANDROID) 69 #if defined(OS_ANDROID)
70 return net::CACHE_BACKEND_SIMPLE; 70 return net::CACHE_BACKEND_SIMPLE;
71 #else 71 #else
72 const base::CommandLine& command_line = 72 const base::CommandLine& command_line =
73 *base::CommandLine::ForCurrentProcess(); 73 *base::CommandLine::ForCurrentProcess();
74 if (command_line.HasSwitch(switches::kUseSimpleCacheBackend)) { 74 if (command_line.HasSwitch(switches::kUseSimpleCacheBackend)) {
75 const std::string opt_value = 75 const std::string opt_value =
76 command_line.GetSwitchValueASCII(switches::kUseSimpleCacheBackend); 76 command_line.GetSwitchValueASCII(switches::kUseSimpleCacheBackend);
77 if (LowerCaseEqualsASCII(opt_value, "off")) 77 if (base::LowerCaseEqualsASCII(opt_value, "off"))
78 return net::CACHE_BACKEND_BLOCKFILE; 78 return net::CACHE_BACKEND_BLOCKFILE;
79 if (opt_value.empty() || LowerCaseEqualsASCII(opt_value, "on")) 79 if (opt_value.empty() || base::LowerCaseEqualsASCII(opt_value, "on"))
80 return net::CACHE_BACKEND_SIMPLE; 80 return net::CACHE_BACKEND_SIMPLE;
81 } 81 }
82 const std::string experiment_name = 82 const std::string experiment_name =
83 base::FieldTrialList::FindFullName("SimpleCacheTrial"); 83 base::FieldTrialList::FindFullName("SimpleCacheTrial");
84 if (experiment_name == "ExperimentYes" || 84 if (experiment_name == "ExperimentYes" ||
85 experiment_name == "ExperimentYes2") { 85 experiment_name == "ExperimentYes2") {
86 return net::CACHE_BACKEND_SIMPLE; 86 return net::CACHE_BACKEND_SIMPLE;
87 } 87 }
88 return net::CACHE_BACKEND_BLOCKFILE; 88 return net::CACHE_BACKEND_BLOCKFILE;
89 #endif 89 #endif
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 const base::Closure& completion) { 811 const base::Closure& completion) {
812 DCHECK_CURRENTLY_ON(BrowserThread::IO); 812 DCHECK_CURRENTLY_ON(BrowserThread::IO);
813 DCHECK(initialized()); 813 DCHECK(initialized());
814 814
815 DCHECK(transport_security_state()); 815 DCHECK(transport_security_state());
816 // Completes synchronously. 816 // Completes synchronously.
817 transport_security_state()->DeleteAllDynamicDataSince(time); 817 transport_security_state()->DeleteAllDynamicDataSince(time);
818 DCHECK(http_server_properties_manager_); 818 DCHECK(http_server_properties_manager_);
819 http_server_properties_manager_->Clear(completion); 819 http_server_properties_manager_->Clear(completion);
820 } 820 }
OLDNEW
« no previous file with comments | « chrome/browser/net/firefox_proxy_settings.cc ('k') | chrome/browser/safe_browsing/malware_details_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698