summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 23:33:33 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 23:33:33 +0000
commit4f96241da28ab67c163fb387299acbaa27fe00f9 (patch)
tree016adbd635a5e8671ca1ef4e24e05a6f84363d25 /chrome
parent2251e91401150e5b94a6fc1913fa1fd8a225289b (diff)
downloadchromium_src-4f96241da28ab67c163fb387299acbaa27fe00f9.zip
chromium_src-4f96241da28ab67c163fb387299acbaa27fe00f9.tar.gz
chromium_src-4f96241da28ab67c163fb387299acbaa27fe00f9.tar.bz2
kqueue implementation of FilePathWatcher on Mac.
BUG=54822,77391,77217,77064,69641 TEST=BUILD Review URL: http://codereview.chromium.org/6731064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/policy/file_based_policy_loader.cc3
-rw-r--r--chrome/browser/user_style_sheet_watcher.cc3
-rw-r--r--chrome/common/service_process_util_mac.mm5
-rw-r--r--chrome/common/service_process_util_posix.h2
4 files changed, 3 insertions, 10 deletions
diff --git a/chrome/browser/policy/file_based_policy_loader.cc b/chrome/browser/policy/file_based_policy_loader.cc
index c12bbcf..62114fa 100644
--- a/chrome/browser/policy/file_based_policy_loader.cc
+++ b/chrome/browser/policy/file_based_policy_loader.cc
@@ -97,8 +97,7 @@ void FileBasedPolicyLoader::InitOnFileThread() {
if (!config_file_path().empty() &&
!watcher_->Watch(
config_file_path(),
- new FileBasedPolicyWatcherDelegate(this),
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI))) {
+ new FileBasedPolicyWatcherDelegate(this))) {
OnError();
}
diff --git a/chrome/browser/user_style_sheet_watcher.cc b/chrome/browser/user_style_sheet_watcher.cc
index 9a314b3..516501d 100644
--- a/chrome/browser/user_style_sheet_watcher.cc
+++ b/chrome/browser/user_style_sheet_watcher.cc
@@ -150,8 +150,7 @@ void UserStyleSheetWatcher::Init() {
.AppendASCII(kUserStyleSheetFile);
if (!file_watcher_->Watch(
style_sheet_file,
- loader_.get(),
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI))) {
+ loader_.get())) {
LOG(ERROR) << "Failed to setup watch for " << style_sheet_file.value();
}
loader_->LoadStyleSheet(style_sheet_file);
diff --git a/chrome/common/service_process_util_mac.mm b/chrome/common/service_process_util_mac.mm
index d06a93e..62a0371 100644
--- a/chrome/common/service_process_util_mac.mm
+++ b/chrome/common/service_process_util_mac.mm
@@ -179,7 +179,6 @@ bool ServiceProcessState::Initialize() {
return false;
}
state_->launchd_conf_.reset(dict);
- state_->ui_message_loop_= base::MessageLoopProxy::CreateForCurrentThread();
return true;
}
@@ -323,9 +322,7 @@ bool ServiceProcessState::StateData::WatchExecutable() {
LOG(ERROR) << "executable_watcher_.Init " << executable_path.value();
return false;
}
- if (!executable_watcher_.Watch(executable_path,
- delegate.release(),
- ui_message_loop_)) {
+ if (!executable_watcher_.Watch(executable_path, delegate.release())) {
LOG(ERROR) << "executable_watcher_.watch " << executable_path.value();
return false;
}
diff --git a/chrome/common/service_process_util_posix.h b/chrome/common/service_process_util_posix.h
index 9928917..b0a908b 100644
--- a/chrome/common/service_process_util_posix.h
+++ b/chrome/common/service_process_util_posix.h
@@ -21,7 +21,6 @@ MultiProcessLock* TakeServiceRunningLock(bool waiting);
#if defined(OS_MACOSX)
#include "base/mac/scoped_cftyperef.h"
-#include "base/message_loop_proxy.h"
#include "content/common/file_path_watcher/file_path_watcher.h"
class CommandLine;
@@ -68,7 +67,6 @@ struct ServiceProcessState::StateData
base::mac::ScopedCFTypeRef<CFDictionaryRef> launchd_conf_;
FilePathWatcher executable_watcher_;
- scoped_refptr<base::MessageLoopProxy> ui_message_loop_;
#endif // OS_MACOSX
#if defined(OS_LINUX)
scoped_ptr<MultiProcessLock> initializing_lock_;