OLD | NEW |
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/prefs/chrome_command_line_pref_store.h" | 5 #include "chrome/browser/prefs/chrome_command_line_pref_store.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 command_line()->GetSwitchValueASCII(switches::kCipherSuiteBlacklist), | 156 command_line()->GetSwitchValueASCII(switches::kCipherSuiteBlacklist), |
157 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)); | 157 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)); |
158 SetValue(ssl_config::prefs::kCipherSuiteBlacklist, std::move(list_value), | 158 SetValue(ssl_config::prefs::kCipherSuiteBlacklist, std::move(list_value), |
159 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); | 159 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); |
160 } | 160 } |
161 } | 161 } |
162 | 162 |
163 void ChromeCommandLinePrefStore::ApplyBackgroundModeSwitches() { | 163 void ChromeCommandLinePrefStore::ApplyBackgroundModeSwitches() { |
164 if (command_line()->HasSwitch(switches::kDisableExtensions)) { | 164 if (command_line()->HasSwitch(switches::kDisableExtensions)) { |
165 SetValue(prefs::kBackgroundModeEnabled, | 165 SetValue(prefs::kBackgroundModeEnabled, |
166 base::MakeUnique<base::FundamentalValue>(false), | 166 base::MakeUnique<base::Value>(false), |
167 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); | 167 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); |
168 } | 168 } |
169 } | 169 } |
OLD | NEW |