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

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

Issue 597933002: Restored disable print preview policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thu Sep 25 18:19:02 PDT 2014 Created 6 years, 2 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 "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 { switches::kAlwaysAuthorizePlugins, prefs::kPluginsAlwaysAuthorize, 53 { switches::kAlwaysAuthorizePlugins, prefs::kPluginsAlwaysAuthorize,
54 true }, 54 true },
55 { switches::kNoPings, prefs::kEnableHyperlinkAuditing, false }, 55 { switches::kNoPings, prefs::kEnableHyperlinkAuditing, false },
56 { switches::kNoReferrers, prefs::kEnableReferrers, false }, 56 { switches::kNoReferrers, prefs::kEnableReferrers, false },
57 { switches::kAllowRunningInsecureContent, 57 { switches::kAllowRunningInsecureContent,
58 prefs::kWebKitAllowRunningInsecureContent, true }, 58 prefs::kWebKitAllowRunningInsecureContent, true },
59 { switches::kNoDisplayingInsecureContent, 59 { switches::kNoDisplayingInsecureContent,
60 prefs::kWebKitAllowDisplayingInsecureContent, false }, 60 prefs::kWebKitAllowDisplayingInsecureContent, false },
61 { switches::kAllowCrossOriginAuthPrompt, 61 { switches::kAllowCrossOriginAuthPrompt,
62 prefs::kAllowCrossOriginAuthPrompt, true }, 62 prefs::kAllowCrossOriginAuthPrompt, true },
63 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true },
63 #if defined(OS_CHROMEOS) 64 #if defined(OS_CHROMEOS)
64 { chromeos::switches::kEnableTouchpadThreeFingerClick, 65 { chromeos::switches::kEnableTouchpadThreeFingerClick,
65 prefs::kEnableTouchpadThreeFingerClick, true }, 66 prefs::kEnableTouchpadThreeFingerClick, true },
66 #endif 67 #endif
67 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, 68 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false },
68 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, 69 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true },
69 }; 70 };
70 71
71 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry 72 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry
72 CommandLinePrefStore::integer_switch_map_[] = { 73 CommandLinePrefStore::integer_switch_map_[] = {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 list_value->Append(new base::StringValue(*it)); 176 list_value->Append(new base::StringValue(*it));
176 } 177 }
177 SetValue(prefs::kCipherSuiteBlacklist, list_value); 178 SetValue(prefs::kCipherSuiteBlacklist, list_value);
178 } 179 }
179 } 180 }
180 181
181 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { 182 void CommandLinePrefStore::ApplyBackgroundModeSwitches() {
182 if (command_line_->HasSwitch(switches::kDisableExtensions)) 183 if (command_line_->HasSwitch(switches::kDisableExtensions))
183 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); 184 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false));
184 } 185 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler_list_factory.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698