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/command_line_pref_store.h" | 5 #include "chrome/browser/prefs/command_line_pref_store.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 base::ListValue* list_value = new base::ListValue(); | 163 base::ListValue* list_value = new base::ListValue(); |
164 for (std::vector<std::string>::const_iterator it = cipher_strings.begin(); | 164 for (std::vector<std::string>::const_iterator it = cipher_strings.begin(); |
165 it != cipher_strings.end(); ++it) { | 165 it != cipher_strings.end(); ++it) { |
166 list_value->Append(base::Value::CreateStringValue(*it)); | 166 list_value->Append(base::Value::CreateStringValue(*it)); |
167 } | 167 } |
168 SetValue(prefs::kCipherSuiteBlacklist, list_value); | 168 SetValue(prefs::kCipherSuiteBlacklist, list_value); |
169 } | 169 } |
170 } | 170 } |
171 | 171 |
172 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 172 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
173 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || | 173 if (command_line_->HasSwitch(switches::kDisableExtensions)) { |
174 command_line_->HasSwitch(switches::kDisableExtensions)) { | |
175 base::Value* value = base::Value::CreateBooleanValue(false); | 174 base::Value* value = base::Value::CreateBooleanValue(false); |
176 SetValue(prefs::kBackgroundModeEnabled, value); | 175 SetValue(prefs::kBackgroundModeEnabled, value); |
177 } | 176 } |
178 } | 177 } |
OLD | NEW |