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

Unified Diff: base/files/file_path_watcher_linux.cc

Issue 10874083: Enable file path watcher for Android (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 4 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: base/files/file_path_watcher_linux.cc
diff --git a/base/files/file_path_watcher_linux.cc b/base/files/file_path_watcher_linux.cc
index 205a3eb779fbff1127a5c71657d86fa05130447a..93930f688c6b97a734cb696366823c0a1d6fed92 100644
--- a/base/files/file_path_watcher_linux.cc
+++ b/base/files/file_path_watcher_linux.cc
@@ -373,8 +373,8 @@ bool FilePathWatcherImpl::Watch(const FilePath& path,
std::vector<FilePath::StringType> comps;
target_.GetComponents(&comps);
DCHECK(!comps.empty());
- for (std::vector<FilePath::StringType>::const_iterator comp(++comps.begin());
- comp != comps.end(); ++comp) {
+ std::vector<FilePath::StringType>::const_iterator comp = comps.begin();
+ for (comp++; comp != comps.end(); comp++) {
Mattias Nissler (ping if slow) 2012/08/27 12:53:02 Style guide says to use preincrement: http://googl
watches_.push_back(WatchEntry(InotifyReader::kInvalidWatch, *comp));
}
watches_.push_back(WatchEntry(InotifyReader::kInvalidWatch,

Powered by Google App Engine
This is Rietveld 408576698