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

Unified Diff: chrome/browser/policy/file_based_policy_loader.cc

Issue 6793020: Move FilePathWatcher to base/files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move OWNERS file and rebase to pick up latest changes Created 9 years, 9 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/policy/file_based_policy_loader.cc
diff --git a/chrome/browser/policy/file_based_policy_loader.cc b/chrome/browser/policy/file_based_policy_loader.cc
index a127a71cf43edd954de4bf099c95bd20e90b6470..df8c204a765f94354f922a7fa39291426d9ffac2 100644
--- a/chrome/browser/policy/file_based_policy_loader.cc
+++ b/chrome/browser/policy/file_based_policy_loader.cc
@@ -32,7 +32,8 @@ FileBasedPolicyLoader::FileBasedPolicyLoader(
FileBasedPolicyLoader::~FileBasedPolicyLoader() {}
-class FileBasedPolicyWatcherDelegate : public FilePathWatcher::Delegate {
+class FileBasedPolicyWatcherDelegate
+ : public base::files::FilePathWatcher::Delegate {
public:
explicit FileBasedPolicyWatcherDelegate(
scoped_refptr<FileBasedPolicyLoader> loader)
@@ -94,7 +95,7 @@ void FileBasedPolicyLoader::Reload() {
void FileBasedPolicyLoader::InitOnFileThread() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
- watcher_.reset(new FilePathWatcher);
+ watcher_.reset(new base::files::FilePathWatcher);
const FilePath& path = config_file_path();
if (!path.empty() &&
!watcher_->Watch(path, new FileBasedPolicyWatcherDelegate(this))) {

Powered by Google App Engine
This is Rietveld 408576698