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

Unified Diff: chrome/browser/prefs/command_line_pref_store.h

Issue 8572006: Add policies to control the disk cache size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: This time two more for realz. Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prefs/command_line_pref_store.h
diff --git a/chrome/browser/prefs/command_line_pref_store.h b/chrome/browser/prefs/command_line_pref_store.h
index 5555b189a9868c19fe63e3c65685263275af5e8d..2b1a1b194c05a43a97b0716b226186583859fccd 100644
--- a/chrome/browser/prefs/command_line_pref_store.h
+++ b/chrome/browser/prefs/command_line_pref_store.h
@@ -30,6 +30,11 @@ class CommandLinePrefStore : public ValueMapPrefStore {
const char* preference_path;
};
+ struct IntegerSwitchToPreferenceMapEntry {
+ const char* switch_name;
+ const char* preference_path;
+ };
+
// |set_value| indicates what the preference should be set to if the switch
// is present.
struct BooleanSwitchToPreferenceMapEntry {
@@ -37,7 +42,6 @@ class CommandLinePrefStore : public ValueMapPrefStore {
const char* preference_path;
bool set_value;
};
- static const BooleanSwitchToPreferenceMapEntry boolean_switch_map_[];
// Using the string and boolean maps, apply command-line switches to their
// corresponding preferences in this pref store.
@@ -52,7 +56,10 @@ class CommandLinePrefStore : public ValueMapPrefStore {
// Weak reference.
const CommandLine* command_line_;
+ // Mappings of command line switches to prefs.
+ static const BooleanSwitchToPreferenceMapEntry boolean_switch_map_[];
static const StringSwitchToPreferenceMapEntry string_switch_map_[];
+ static const IntegerSwitchToPreferenceMapEntry integer_switch_map_[];
DISALLOW_COPY_AND_ASSIGN(CommandLinePrefStore);
};
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store_unittest.cc ('k') | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698