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

Unified Diff: chrome/browser/chromeos/file_system_provider/observed_entry.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/observed_entry.cc
diff --git a/chrome/browser/chromeos/file_system_provider/observed_entry.cc b/chrome/browser/chromeos/file_system_provider/observed_entry.cc
index 51d682d22d3a3dbd11afbaf4e5fba53ba07c0266..20e791a937fc7549a8b275efaef7c202efa3c687 100644
--- a/chrome/browser/chromeos/file_system_provider/observed_entry.cc
+++ b/chrome/browser/chromeos/file_system_provider/observed_entry.cc
@@ -7,6 +7,21 @@
namespace chromeos {
namespace file_system_provider {
+ObservedEntryKey::ObservedEntryKey(const base::FilePath& entry_path,
+ bool recursive)
+ : entry_path(entry_path), recursive(recursive) {
+}
+
+ObservedEntryKey::~ObservedEntryKey() {
+}
+
+bool ObservedEntryKey::Comparator::operator()(const ObservedEntryKey& a,
+ const ObservedEntryKey& b) const {
+ if (a.entry_path != b.entry_path)
+ return a.entry_path < b.entry_path;
+ return a.recursive < b.recursive;
+}
+
ObservedEntry::ObservedEntry() : recursive(false) {
}

Powered by Google App Engine
This is Rietveld 408576698