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

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

Issue 8896018: Add a policy pref for the --enable-memory-info flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing file with RegisterBooleanPref(). Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/string_split.h" 9 #include "base/string_split.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 30 matching lines...) Expand all
41 { switches::kAllowRunningInsecureContent, 41 { switches::kAllowRunningInsecureContent,
42 prefs::kWebKitAllowRunningInsecureContent, true }, 42 prefs::kWebKitAllowRunningInsecureContent, true },
43 { switches::kNoDisplayingInsecureContent, 43 { switches::kNoDisplayingInsecureContent,
44 prefs::kWebKitAllowDisplayingInsecureContent, false }, 44 prefs::kWebKitAllowDisplayingInsecureContent, false },
45 { switches::kAllowCrossOriginAuthPrompt, 45 { switches::kAllowCrossOriginAuthPrompt,
46 prefs::kAllowCrossOriginAuthPrompt, true }, 46 prefs::kAllowCrossOriginAuthPrompt, true },
47 { switches::kDisableSSL3, prefs::kSSL3Enabled, false }, 47 { switches::kDisableSSL3, prefs::kSSL3Enabled, false },
48 { switches::kDisableTLS1, prefs::kTLS1Enabled, false }, 48 { switches::kDisableTLS1, prefs::kTLS1Enabled, false },
49 { switches::kEnableOriginBoundCerts, prefs::kEnableOriginBoundCerts, 49 { switches::kEnableOriginBoundCerts, prefs::kEnableOriginBoundCerts,
50 true }, 50 true },
51 { switches::kEnableMemoryInfo, prefs::kEnableMemoryInfo, false },
51 }; 52 };
52 53
53 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry 54 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry
54 CommandLinePrefStore::integer_switch_map_[] = { 55 CommandLinePrefStore::integer_switch_map_[] = {
55 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, 56 { switches::kDiskCacheSize, prefs::kDiskCacheSize },
56 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, 57 { switches::kMediaCacheSize, prefs::kMediaCacheSize },
57 }; 58 };
58 59
59 CommandLinePrefStore::CommandLinePrefStore(const CommandLine* command_line) 60 CommandLinePrefStore::CommandLinePrefStore(const CommandLine* command_line)
60 : command_line_(command_line) { 61 : command_line_(command_line) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 std::vector<std::string> cipher_strings; 145 std::vector<std::string> cipher_strings;
145 base::SplitString(cipher_suites, ',', &cipher_strings); 146 base::SplitString(cipher_suites, ',', &cipher_strings);
146 base::ListValue* list_value = new base::ListValue(); 147 base::ListValue* list_value = new base::ListValue();
147 for (std::vector<std::string>::const_iterator it = cipher_strings.begin(); 148 for (std::vector<std::string>::const_iterator it = cipher_strings.begin();
148 it != cipher_strings.end(); ++it) { 149 it != cipher_strings.end(); ++it) {
149 list_value->Append(base::Value::CreateStringValue(*it)); 150 list_value->Append(base::Value::CreateStringValue(*it));
150 } 151 }
151 SetValue(prefs::kCipherSuiteBlacklist, list_value); 152 SetValue(prefs::kCipherSuiteBlacklist, list_value);
152 } 153 }
153 } 154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698