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

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

Issue 12316144: Merge 183832 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1410/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/profiles/profile.cc » ('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/logging.h" 10 #include "base/logging.h"
11 #include "base/string_split.h" 11 #include "base/string_split.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/prefs/proxy_config_dictionary.h" 14 #include "chrome/browser/prefs/proxy_config_dictionary.h"
15 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "ui/base/ui_base_switches.h" 17 #include "ui/base/ui_base_switches.h"
18 18
19 const CommandLinePrefStore::StringSwitchToPreferenceMapEntry 19 const CommandLinePrefStore::StringSwitchToPreferenceMapEntry
20 CommandLinePrefStore::string_switch_map_[] = { 20 CommandLinePrefStore::string_switch_map_[] = {
21 { switches::kLang, prefs::kApplicationLocale }, 21 { switches::kLang, prefs::kApplicationLocale },
22 { switches::kAuthSchemes, prefs::kAuthSchemes }, 22 { switches::kAuthSchemes, prefs::kAuthSchemes },
23 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist }, 23 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist },
24 { switches::kAuthNegotiateDelegateWhitelist, 24 { switches::kAuthNegotiateDelegateWhitelist,
25 prefs::kAuthNegotiateDelegateWhitelist }, 25 prefs::kAuthNegotiateDelegateWhitelist },
26 { switches::kGSSAPILibraryName, prefs::kGSSAPILibraryName }, 26 { switches::kGSSAPILibraryName, prefs::kGSSAPILibraryName },
27 { switches::kSpdyProxyOrigin, prefs::kSpdyProxyOrigin }, 27 { switches::kSpdyProxyAuthOrigin, prefs::kSpdyProxyAuthOrigin },
28 { switches::kDiskCacheDir, prefs::kDiskCacheDir }, 28 { switches::kDiskCacheDir, prefs::kDiskCacheDir },
29 { switches::kSSLVersionMin, prefs::kSSLVersionMin }, 29 { switches::kSSLVersionMin, prefs::kSSLVersionMin },
30 { switches::kSSLVersionMax, prefs::kSSLVersionMax }, 30 { switches::kSSLVersionMax, prefs::kSSLVersionMax },
31 }; 31 };
32 32
33 const CommandLinePrefStore::BooleanSwitchToPreferenceMapEntry 33 const CommandLinePrefStore::BooleanSwitchToPreferenceMapEntry
34 CommandLinePrefStore::boolean_switch_map_[] = { 34 CommandLinePrefStore::boolean_switch_map_[] = {
35 { switches::kDisableAuthNegotiateCnameLookup, 35 { switches::kDisableAuthNegotiateCnameLookup,
36 prefs::kDisableAuthNegotiateCnameLookup, true }, 36 prefs::kDisableAuthNegotiateCnameLookup, true },
37 { switches::kEnableAuthNegotiatePort, prefs::kEnableAuthNegotiatePort, 37 { switches::kEnableAuthNegotiatePort, prefs::kEnableAuthNegotiatePort,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 } 176 }
177 177
178 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { 178 void CommandLinePrefStore::ApplyBackgroundModeSwitches() {
179 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || 179 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) ||
180 command_line_->HasSwitch(switches::kDisableExtensions)) { 180 command_line_->HasSwitch(switches::kDisableExtensions)) {
181 Value* value = Value::CreateBooleanValue(false); 181 Value* value = Value::CreateBooleanValue(false);
182 SetValue(prefs::kBackgroundModeEnabled, value); 182 SetValue(prefs::kBackgroundModeEnabled, value);
183 } 183 }
184 } 184 }
OLDNEW
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698