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

Unified Diff: components/prefs/json_pref_store.h

Issue 2751603002: Remove the alternative preferences filename from JsonPrefStore. (Closed)
Patch Set: Created 3 years, 9 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 | « chrome/common/chrome_constants.cc ('k') | components/prefs/json_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/json_pref_store.h
diff --git a/components/prefs/json_pref_store.h b/components/prefs/json_pref_store.h
index 8c1164ca8ba390b075f1b01142ad353900b94637..6284b8d5478df39110f532e564d76e44bffc3e3d 100644
--- a/components/prefs/json_pref_store.h
+++ b/components/prefs/json_pref_store.h
@@ -62,22 +62,11 @@ class COMPONENTS_PREFS_EXPORT JsonPrefStore
const base::FilePath& pref_filename,
base::SequencedWorkerPool* worker_pool);
- // Same as the constructor below with no alternate filename.
- JsonPrefStore(
- const base::FilePath& pref_filename,
- const scoped_refptr<base::SequencedTaskRunner>& sequenced_task_runner,
- std::unique_ptr<PrefFilter> pref_filter);
-
// |sequenced_task_runner| must be a shutdown-blocking task runner, ideally
// created by the GetTaskRunnerForFile() method above.
// |pref_filename| is the path to the file to read prefs from.
- // |pref_alternate_filename| is the path to an alternate file which the
- // desired prefs may have previously been written to. If |pref_filename|
- // doesn't exist and |pref_alternate_filename| does, |pref_alternate_filename|
- // will be moved to |pref_filename| before the read occurs.
JsonPrefStore(
const base::FilePath& pref_filename,
- const base::FilePath& pref_alternate_filename,
const scoped_refptr<base::SequencedTaskRunner>& sequenced_task_runner,
std::unique_ptr<PrefFilter> pref_filter);
@@ -231,7 +220,6 @@ class COMPONENTS_PREFS_EXPORT JsonPrefStore
void ScheduleWrite(uint32_t flags);
const base::FilePath path_;
- const base::FilePath alternate_path_;
const scoped_refptr<base::SequencedTaskRunner> sequenced_task_runner_;
std::unique_ptr<base::DictionaryValue> prefs_;
« no previous file with comments | « chrome/common/chrome_constants.cc ('k') | components/prefs/json_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698