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

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

Issue 674413002: [fsp] Rename ObserveEntry with AddWatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/watcher.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/file_system_provider/watcher.cc
diff --git a/chrome/browser/chromeos/file_system_provider/observed_entry.cc b/chrome/browser/chromeos/file_system_provider/watcher.cc
similarity index 53%
rename from chrome/browser/chromeos/file_system_provider/observed_entry.cc
rename to chrome/browser/chromeos/file_system_provider/watcher.cc
index b9ed60e1f309bcebf45809c838026235459d2759..c2dc9a8b7009025c38d7c03561916db8d15c2dcc 100644
--- a/chrome/browser/chromeos/file_system_provider/observed_entry.cc
+++ b/chrome/browser/chromeos/file_system_provider/watcher.cc
@@ -2,21 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/chromeos/file_system_provider/observed_entry.h"
+#include "chrome/browser/chromeos/file_system_provider/watcher.h"
namespace chromeos {
namespace file_system_provider {
-ObservedEntryKey::ObservedEntryKey(const base::FilePath& entry_path,
- bool recursive)
+WatcherKey::WatcherKey(const base::FilePath& entry_path, bool recursive)
: entry_path(entry_path), recursive(recursive) {
}
-ObservedEntryKey::~ObservedEntryKey() {
+WatcherKey::~WatcherKey() {
}
-bool ObservedEntryKey::Comparator::operator()(const ObservedEntryKey& a,
- const ObservedEntryKey& b) const {
+bool WatcherKey::Comparator::operator()(const WatcherKey& a,
+ const WatcherKey& b) const {
if (a.entry_path != b.entry_path)
return a.entry_path < b.entry_path;
return a.recursive < b.recursive;
@@ -28,10 +27,10 @@ Subscriber::Subscriber() : persistent(false) {
Subscriber::~Subscriber() {
}
-ObservedEntry::ObservedEntry() : recursive(false) {
+Watcher::Watcher() : recursive(false) {
}
-ObservedEntry::~ObservedEntry() {
+Watcher::~Watcher() {
}
} // namespace file_system_provider
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/watcher.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698