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

Unified Diff: chrome/browser/user_style_sheet_watcher.cc

Issue 11415066: FilePathWatcher::Watch() - Listen for sub directory changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac compile error. Created 8 years, 1 month 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/user_style_sheet_watcher.cc
diff --git a/chrome/browser/user_style_sheet_watcher.cc b/chrome/browser/user_style_sheet_watcher.cc
index acfe17845a12e3e387ed83b8c1be3230f791e886..5a93f17eaac590243eae406ab64bf4c8f505d979 100644
--- a/chrome/browser/user_style_sheet_watcher.cc
+++ b/chrome/browser/user_style_sheet_watcher.cc
@@ -161,11 +161,8 @@ void UserStyleSheetWatcher::Init() {
file_watcher_.reset(new FilePathWatcher);
FilePath style_sheet_file = profile_path_.AppendASCII(kStyleSheetDir)
.AppendASCII(kUserStyleSheetFile);
- if (!file_watcher_->Watch(
- style_sheet_file,
- loader_.get())) {
+ if (!file_watcher_->Watch(style_sheet_file, false, loader_.get()))
LOG(ERROR) << "Failed to setup watch for " << style_sheet_file.value();
- }
loader_->LoadStyleSheet(style_sheet_file);
}
}

Powered by Google App Engine
This is Rietveld 408576698