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

Unified Diff: chrome/browser/chromeos/file_system_provider/registry.cc

Issue 679573002: [fsp] Separate recursive and non-recursive watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 6 years, 2 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
Index: chrome/browser/chromeos/file_system_provider/registry.cc
diff --git a/chrome/browser/chromeos/file_system_provider/registry.cc b/chrome/browser/chromeos/file_system_provider/registry.cc
index d5c9e28fa7eb7cb8bef3e35d1318df96b178ec60..58fc872f1478f4abb97a3c9770f6c80bedb17b81 100644
--- a/chrome/browser/chromeos/file_system_provider/registry.cc
+++ b/chrome/browser/chromeos/file_system_provider/registry.cc
@@ -64,8 +64,8 @@ void Registry::RememberFileSystem(
for (const auto& it : observed_entries) {
base::DictionaryValue* const observed_entry = new base::DictionaryValue();
- observed_entries_value->SetWithoutPathExpansion(it.first.value(),
- observed_entry);
+ observed_entries_value->SetWithoutPathExpansion(
+ it.second.entry_path.value(), observed_entry);
observed_entry->SetStringWithoutPathExpansion(
kPrefKeyObservedEntryEntryPath, it.second.entry_path.value());
observed_entry->SetBooleanWithoutPathExpansion(
@@ -201,8 +201,8 @@ scoped_ptr<Registry::RestoredFileSystems> Registry::RestoreFileSystems(
base::FilePath::FromUTF8Unsafe(entry_path);
restored_observed_entry.recursive = recursive;
restored_observed_entry.last_tag = last_tag;
- restored_file_system
- .observed_entries[base::FilePath::FromUTF8Unsafe(entry_path)] =
+ restored_file_system.observed_entries[ObservedEntryKey(
+ base::FilePath::FromUTF8Unsafe(entry_path), recursive)] =
restored_observed_entry;
}
}

Powered by Google App Engine
This is Rietveld 408576698