| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/prefs/command_line_pref_store.h" | 5 #include "chrome/browser/prefs/command_line_pref_store.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "base/string_split.h" | 9 #include "base/string_split.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 { switches::kAllowRunningInsecureContent, | 41 { switches::kAllowRunningInsecureContent, |
| 42 prefs::kWebKitAllowRunningInsecureContent, true }, | 42 prefs::kWebKitAllowRunningInsecureContent, true }, |
| 43 { switches::kNoDisplayingInsecureContent, | 43 { switches::kNoDisplayingInsecureContent, |
| 44 prefs::kWebKitAllowDisplayingInsecureContent, false }, | 44 prefs::kWebKitAllowDisplayingInsecureContent, false }, |
| 45 { switches::kAllowCrossOriginAuthPrompt, | 45 { switches::kAllowCrossOriginAuthPrompt, |
| 46 prefs::kAllowCrossOriginAuthPrompt, true }, | 46 prefs::kAllowCrossOriginAuthPrompt, true }, |
| 47 { switches::kDisableSSL3, prefs::kSSL3Enabled, false }, | 47 { switches::kDisableSSL3, prefs::kSSL3Enabled, false }, |
| 48 { switches::kDisableTLS1, prefs::kTLS1Enabled, false }, | 48 { switches::kDisableTLS1, prefs::kTLS1Enabled, false }, |
| 49 { switches::kEnableOriginBoundCerts, prefs::kEnableOriginBoundCerts, | 49 { switches::kEnableOriginBoundCerts, prefs::kEnableOriginBoundCerts, |
| 50 true }, | 50 true }, |
| 51 { switches::kEnableMemoryInfo, prefs::kEnableMemoryInfo, false }, |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry | 54 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry |
| 54 CommandLinePrefStore::integer_switch_map_[] = { | 55 CommandLinePrefStore::integer_switch_map_[] = { |
| 55 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, | 56 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, |
| 56 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, | 57 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 CommandLinePrefStore::CommandLinePrefStore(const CommandLine* command_line) | 60 CommandLinePrefStore::CommandLinePrefStore(const CommandLine* command_line) |
| 60 : command_line_(command_line) { | 61 : command_line_(command_line) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 std::vector<std::string> cipher_strings; | 145 std::vector<std::string> cipher_strings; |
| 145 base::SplitString(cipher_suites, ',', &cipher_strings); | 146 base::SplitString(cipher_suites, ',', &cipher_strings); |
| 146 base::ListValue* list_value = new base::ListValue(); | 147 base::ListValue* list_value = new base::ListValue(); |
| 147 for (std::vector<std::string>::const_iterator it = cipher_strings.begin(); | 148 for (std::vector<std::string>::const_iterator it = cipher_strings.begin(); |
| 148 it != cipher_strings.end(); ++it) { | 149 it != cipher_strings.end(); ++it) { |
| 149 list_value->Append(base::Value::CreateStringValue(*it)); | 150 list_value->Append(base::Value::CreateStringValue(*it)); |
| 150 } | 151 } |
| 151 SetValue(prefs::kCipherSuiteBlacklist, list_value); | 152 SetValue(prefs::kCipherSuiteBlacklist, list_value); |
| 152 } | 153 } |
| 153 } | 154 } |
| OLD | NEW |