| 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 cc89d13e684f4145933fe20b05ac1778cdfbefe7..c12bbcf15264ef9c9982ba025689015152eacca6 100644
|
| --- a/chrome/browser/policy/file_based_policy_loader.cc
|
| +++ b/chrome/browser/policy/file_based_policy_loader.cc
|
| @@ -1,9 +1,11 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| #include "chrome/browser/policy/file_based_policy_loader.h"
|
|
|
| +#include "content/browser/browser_thread.h"
|
| +
|
| namespace {
|
|
|
| // Amount of time we wait for the files on disk to settle before trying to load
|
| @@ -93,8 +95,10 @@ void FileBasedPolicyLoader::InitOnFileThread() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
|
| watcher_.reset(new FilePathWatcher);
|
| if (!config_file_path().empty() &&
|
| - !watcher_->Watch(config_file_path(),
|
| - new FileBasedPolicyWatcherDelegate(this))) {
|
| + !watcher_->Watch(
|
| + config_file_path(),
|
| + new FileBasedPolicyWatcherDelegate(this),
|
| + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI))) {
|
| OnError();
|
| }
|
|
|
|
|