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

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

Issue 3774003: Cleanup and style guideline conformance for policy implementation (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: fix windows build and tests Created 10 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 8dd7cd501418a795eb14b44ffed6d0d35ef7348c..2ea29ae8d001fa5f822e80bf1c9054c60bf15152 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);
};
« no previous file with comments | « chrome/browser/policy/mock_configuration_policy_store.h ('k') | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698