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

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

Issue 1368013004: Define Print Preview default printer selection policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
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 "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
(...skipping 14 matching lines...) Expand all
25 25
26 const CommandLinePrefStore::StringSwitchToPreferenceMapEntry 26 const CommandLinePrefStore::StringSwitchToPreferenceMapEntry
27 CommandLinePrefStore::string_switch_map_[] = { 27 CommandLinePrefStore::string_switch_map_[] = {
28 { switches::kLang, prefs::kApplicationLocale }, 28 { switches::kLang, prefs::kApplicationLocale },
29 { data_reduction_proxy::switches::kDataReductionProxy, 29 { data_reduction_proxy::switches::kDataReductionProxy,
30 data_reduction_proxy::prefs::kDataReductionProxy }, 30 data_reduction_proxy::prefs::kDataReductionProxy },
31 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist }, 31 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist },
32 { switches::kSSLVersionMin, prefs::kSSLVersionMin }, 32 { switches::kSSLVersionMin, prefs::kSSLVersionMin },
33 { switches::kSSLVersionMax, prefs::kSSLVersionMax }, 33 { switches::kSSLVersionMax, prefs::kSSLVersionMax },
34 { switches::kSSLVersionFallbackMin, prefs::kSSLVersionFallbackMin }, 34 { switches::kSSLVersionFallbackMin, prefs::kSSLVersionFallbackMin },
35 { switches::kPrintPreviewDefaultDestinationSelectionRules,
36 prefs::kPrintPreviewDefaultDestinationSelectionRules },
35 #if defined(OS_ANDROID) 37 #if defined(OS_ANDROID)
36 { switches::kAuthAndroidNegotiateAccountType, 38 { switches::kAuthAndroidNegotiateAccountType,
37 prefs::kAuthAndroidNegotiateAccountType }, 39 prefs::kAuthAndroidNegotiateAccountType },
38 #endif 40 #endif
39 }; 41 };
40 42
41 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry 43 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry
42 CommandLinePrefStore::path_switch_map_[] = { 44 CommandLinePrefStore::path_switch_map_[] = {
43 { switches::kDiskCacheDir, prefs::kDiskCacheDir }, 45 { switches::kDiskCacheDir, prefs::kDiskCacheDir },
44 }; 46 };
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 191 }
190 } 192 }
191 193
192 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { 194 void CommandLinePrefStore::ApplyBackgroundModeSwitches() {
193 if (command_line_->HasSwitch(switches::kDisableExtensions)) { 195 if (command_line_->HasSwitch(switches::kDisableExtensions)) {
194 SetValue(prefs::kBackgroundModeEnabled, 196 SetValue(prefs::kBackgroundModeEnabled,
195 make_scoped_ptr(new base::FundamentalValue(false)), 197 make_scoped_ptr(new base::FundamentalValue(false)),
196 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); 198 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
197 } 199 }
198 } 200 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698