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

Side by Side Diff: chrome/browser/prefs/command_line_pref_store.cc

Issue 836843003: Removing the flags "auth-schemes", "auth-server-whitelist" and "auth-negotiate-delegate-whitelist" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated changes Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/prefs/proxy_config_dictionary.h" 15 #include "chrome/browser/prefs/proxy_config_dictionary.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "ui/base/ui_base_switches.h" 18 #include "ui/base/ui_base_switches.h"
19 19
20 #if defined(OS_CHROMEOS) 20 #if defined(OS_CHROMEOS)
21 #include "chromeos/chromeos_switches.h" 21 #include "chromeos/chromeos_switches.h"
22 #endif 22 #endif
23 23
24 const CommandLinePrefStore::StringSwitchToPreferenceMapEntry 24 const CommandLinePrefStore::StringSwitchToPreferenceMapEntry
25 CommandLinePrefStore::string_switch_map_[] = { 25 CommandLinePrefStore::string_switch_map_[] = {
26 { switches::kLang, prefs::kApplicationLocale }, 26 { switches::kLang, prefs::kApplicationLocale },
27 { switches::kAuthSchemes, prefs::kAuthSchemes },
28 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist },
29 { switches::kAuthNegotiateDelegateWhitelist,
30 prefs::kAuthNegotiateDelegateWhitelist },
31 { switches::kGSSAPILibraryName, prefs::kGSSAPILibraryName }, 27 { switches::kGSSAPILibraryName, prefs::kGSSAPILibraryName },
32 { data_reduction_proxy::switches::kDataReductionProxy, 28 { data_reduction_proxy::switches::kDataReductionProxy,
33 data_reduction_proxy::prefs::kDataReductionProxy }, 29 data_reduction_proxy::prefs::kDataReductionProxy },
34 { switches::kSSLVersionMin, prefs::kSSLVersionMin }, 30 { switches::kSSLVersionMin, prefs::kSSLVersionMin },
35 { switches::kSSLVersionMax, prefs::kSSLVersionMax }, 31 { switches::kSSLVersionMax, prefs::kSSLVersionMax },
36 { switches::kSSLVersionFallbackMin, prefs::kSSLVersionFallbackMin }, 32 { switches::kSSLVersionFallbackMin, prefs::kSSLVersionFallbackMin },
37 }; 33 };
38 34
39 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry 35 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry
40 CommandLinePrefStore::path_switch_map_[] = { 36 CommandLinePrefStore::path_switch_map_[] = {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 list_value->Append(new base::StringValue(*it)); 174 list_value->Append(new base::StringValue(*it));
179 } 175 }
180 SetValue(prefs::kCipherSuiteBlacklist, list_value); 176 SetValue(prefs::kCipherSuiteBlacklist, list_value);
181 } 177 }
182 } 178 }
183 179
184 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { 180 void CommandLinePrefStore::ApplyBackgroundModeSwitches() {
185 if (command_line_->HasSwitch(switches::kDisableExtensions)) 181 if (command_line_->HasSwitch(switches::kDisableExtensions))
186 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); 182 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false));
187 } 183 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698