summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prefs/command_line_pref_store.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/prefs/command_line_pref_store.h')
-rw-r--r--chrome/browser/prefs/command_line_pref_store.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/chrome/browser/prefs/command_line_pref_store.h b/chrome/browser/prefs/command_line_pref_store.h
index 8dd7cd5..2ea29ae 100644
--- a/chrome/browser/prefs/command_line_pref_store.h
+++ b/chrome/browser/prefs/command_line_pref_store.h
@@ -22,7 +22,7 @@ class CommandLinePrefStore : public PrefStore {
// PrefStore methods:
virtual PrefReadError ReadPrefs();
- virtual DictionaryValue* prefs();
+ virtual DictionaryValue* prefs() const { return prefs_.get(); }
protected:
// Logs a message and returns false if the proxy switches are
@@ -30,16 +30,10 @@ class CommandLinePrefStore : public PrefStore {
bool ValidateProxySwitches();
private:
- // Weak reference.
- const CommandLine* command_line_;
-
- scoped_ptr<DictionaryValue> prefs_;
-
struct StringSwitchToPreferenceMapEntry {
const char* switch_name;
const char* preference_path;
};
- static const StringSwitchToPreferenceMapEntry string_switch_map_[];
// |set_value| indicates what the preference should be set to if the switch
// is present.
@@ -54,6 +48,13 @@ class CommandLinePrefStore : public PrefStore {
// corresponding preferences in this pref store.
void ApplySimpleSwitches();
+ // Weak reference.
+ const CommandLine* command_line_;
+
+ scoped_ptr<DictionaryValue> prefs_;
+
+ static const StringSwitchToPreferenceMapEntry string_switch_map_[];
+
DISALLOW_COPY_AND_ASSIGN(CommandLinePrefStore);
};