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

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

Issue 2030193004: Add a policy for disabling the stripping of PAC URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add better documentatiob Created 4 years, 6 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 | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/profiles/profile_io_data.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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 { switches::kAllowCrossOriginAuthPrompt, 72 { switches::kAllowCrossOriginAuthPrompt,
73 prefs::kAllowCrossOriginAuthPrompt, true }, 73 prefs::kAllowCrossOriginAuthPrompt, true },
74 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, 74 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true },
75 #if defined(OS_CHROMEOS) 75 #if defined(OS_CHROMEOS)
76 { chromeos::switches::kEnableTouchpadThreeFingerClick, 76 { chromeos::switches::kEnableTouchpadThreeFingerClick,
77 prefs::kEnableTouchpadThreeFingerClick, true }, 77 prefs::kEnableTouchpadThreeFingerClick, true },
78 { ash::switches::kAshEnableUnifiedDesktop, 78 { ash::switches::kAshEnableUnifiedDesktop,
79 prefs::kUnifiedDesktopEnabledByDefault, true }, 79 prefs::kUnifiedDesktopEnabledByDefault, true },
80 #endif 80 #endif
81 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, 81 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false },
82 { switches::kUnsafePacUrl, prefs::kPacHttpsUrlStrippingEnabled, false },
82 }; 83 };
83 84
84 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry 85 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry
85 CommandLinePrefStore::integer_switch_map_[] = { 86 CommandLinePrefStore::integer_switch_map_[] = {
86 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, 87 { switches::kDiskCacheSize, prefs::kDiskCacheSize },
87 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, 88 { switches::kMediaCacheSize, prefs::kMediaCacheSize },
88 }; 89 };
89 90
90 CommandLinePrefStore::CommandLinePrefStore( 91 CommandLinePrefStore::CommandLinePrefStore(
91 const base::CommandLine* command_line) 92 const base::CommandLine* command_line)
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 } 202 }
202 } 203 }
203 204
204 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { 205 void CommandLinePrefStore::ApplyBackgroundModeSwitches() {
205 if (command_line_->HasSwitch(switches::kDisableExtensions)) { 206 if (command_line_->HasSwitch(switches::kDisableExtensions)) {
206 SetValue(prefs::kBackgroundModeEnabled, 207 SetValue(prefs::kBackgroundModeEnabled,
207 base::WrapUnique(new base::FundamentalValue(false)), 208 base::WrapUnique(new base::FundamentalValue(false)),
208 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); 209 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
209 } 210 }
210 } 211 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698