From df0ca6c858762b101bf424ff6c0522409fa195fc Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Sun, 17 Oct 2010 04:09:06 +0000 Subject: Move scoped_cftyperef from base to base/mac, use the new namespace, and name it properly (scoped_cftyperef -> ScopedCFTypeRef). TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3855001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62887 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/file_path_watcher_mac.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/file_path_watcher_mac.cc') diff --git a/chrome/browser/file_path_watcher_mac.cc b/chrome/browser/file_path_watcher_mac.cc index ddcfd41..cc925a6 100644 --- a/chrome/browser/file_path_watcher_mac.cc +++ b/chrome/browser/file_path_watcher_mac.cc @@ -10,7 +10,7 @@ #include "base/file_path.h" #include "base/file_util.h" #include "base/logging.h" -#include "base/scoped_cftyperef.h" +#include "base/mac/scoped_cftyperef.h" #include "base/singleton.h" #include "base/time.h" @@ -187,12 +187,12 @@ void FilePathWatcherImpl::UpdateEventStream(FSEventStreamEventId start_event) { if (fsevent_stream_) DestroyEventStream(); - scoped_cftyperef cf_path(CFStringCreateWithCString( + base::mac::ScopedCFTypeRef cf_path(CFStringCreateWithCString( NULL, target_.value().c_str(), kCFStringEncodingMacHFS)); - scoped_cftyperef cf_dir_path(CFStringCreateWithCString( + base::mac::ScopedCFTypeRef cf_dir_path(CFStringCreateWithCString( NULL, target_.DirName().value().c_str(), kCFStringEncodingMacHFS)); CFStringRef paths_array[] = { cf_path.get(), cf_dir_path.get() }; - scoped_cftyperef watched_paths(CFArrayCreate( + base::mac::ScopedCFTypeRef watched_paths(CFArrayCreate( NULL, reinterpret_cast(paths_array), arraysize(paths_array), &kCFTypeArrayCallBacks)); -- cgit v1.1