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

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

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 namespace { 61 namespace {
62 62
63 net::BackendType ChooseCacheBackendType() { 63 net::BackendType ChooseCacheBackendType() {
64 #if defined(OS_ANDROID) 64 #if defined(OS_ANDROID)
65 return net::CACHE_BACKEND_SIMPLE; 65 return net::CACHE_BACKEND_SIMPLE;
66 #else 66 #else
67 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 67 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
68 if (command_line.HasSwitch(switches::kUseSimpleCacheBackend)) { 68 if (command_line.HasSwitch(switches::kUseSimpleCacheBackend)) {
69 const std::string opt_value = 69 const std::string opt_value =
70 command_line.GetSwitchValueASCII(switches::kUseSimpleCacheBackend); 70 command_line.GetSwitchValueASCII(switches::kUseSimpleCacheBackend);
71 if (LowerCaseEqualsASCII(opt_value, "off")) 71 if (base::LowerCaseEqualsASCII(opt_value, "off"))
72 return net::CACHE_BACKEND_BLOCKFILE; 72 return net::CACHE_BACKEND_BLOCKFILE;
73 if (opt_value == "" || LowerCaseEqualsASCII(opt_value, "on")) 73 if (opt_value == "" || base::LowerCaseEqualsASCII(opt_value, "on"))
74 return net::CACHE_BACKEND_SIMPLE; 74 return net::CACHE_BACKEND_SIMPLE;
75 } 75 }
76 const std::string experiment_name = 76 const std::string experiment_name =
77 base::FieldTrialList::FindFullName("SimpleCacheTrial"); 77 base::FieldTrialList::FindFullName("SimpleCacheTrial");
78 if (experiment_name == "ExperimentYes" || 78 if (experiment_name == "ExperimentYes" ||
79 experiment_name == "ExperimentYes2") { 79 experiment_name == "ExperimentYes2") {
80 return net::CACHE_BACKEND_SIMPLE; 80 return net::CACHE_BACKEND_SIMPLE;
81 } 81 }
82 return net::CACHE_BACKEND_BLOCKFILE; 82 return net::CACHE_BACKEND_BLOCKFILE;
83 #endif 83 #endif
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 const base::Closure& completion) { 817 const base::Closure& completion) {
818 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 818 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
819 DCHECK(initialized()); 819 DCHECK(initialized());
820 820
821 DCHECK(transport_security_state()); 821 DCHECK(transport_security_state());
822 // Completes synchronously. 822 // Completes synchronously.
823 transport_security_state()->DeleteAllDynamicDataSince(time); 823 transport_security_state()->DeleteAllDynamicDataSince(time);
824 DCHECK(http_server_properties_manager_); 824 DCHECK(http_server_properties_manager_);
825 http_server_properties_manager_->Clear(completion); 825 http_server_properties_manager_->Clear(completion);
826 } 826 }
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_manager.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