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

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

Issue 545033002: Fix that switch "--disk-cache-dir" has no effect when specifying a path containing non-ascii charac… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 eb4b94f539ea3bc87b8a0bb6c82cee6f5df53495..e614c8e14b87211b29b97760553eb1effbf3ae87 100644
--- a/chrome/browser/prefs/command_line_pref_store.h
+++ b/chrome/browser/prefs/command_line_pref_store.h
@@ -31,6 +31,11 @@ class CommandLinePrefStore : public ValueMapPrefStore {
const char* preference_path;
};
+ struct PathSwitchToPreferenceMapEntry {
+ const char* switch_name;
+ const char* preference_path;
+ };
+
struct IntegerSwitchToPreferenceMapEntry {
const char* switch_name;
const char* preference_path;
@@ -63,6 +68,7 @@ class CommandLinePrefStore : public ValueMapPrefStore {
// Mappings of command line switches to prefs.
static const BooleanSwitchToPreferenceMapEntry boolean_switch_map_[];
static const StringSwitchToPreferenceMapEntry string_switch_map_[];
+ static const PathSwitchToPreferenceMapEntry path_switch_map_[];
static const IntegerSwitchToPreferenceMapEntry integer_switch_map_[];
DISALLOW_COPY_AND_ASSIGN(CommandLinePrefStore);
« no previous file with comments | « no previous file | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698