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

Unified Diff: app/clipboard/clipboard_mac.mm

Issue 3855001: Move scoped_cftyperef from base to base/mac, use the new namespace, and name ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 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
« no previous file with comments | « no previous file | app/surface/accelerated_surface_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/clipboard/clipboard_mac.mm
===================================================================
--- app/clipboard/clipboard_mac.mm (revision 62861)
+++ app/clipboard/clipboard_mac.mm (working copy)
@@ -9,7 +9,7 @@
#include "base/file_path.h"
#include "base/logging.h"
#include "base/mac_util.h"
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#include "base/scoped_nsobject.h"
#include "base/sys_string_conversions.h"
#include "base/utf_string_conversions.h"
@@ -105,16 +105,16 @@
const gfx::Size* size = reinterpret_cast<const gfx::Size*>(size_data);
// Safe because the image goes away before the call returns.
- scoped_cftyperef<CFDataRef> data(
+ base::win::ScopedCFTypeRef<CFDataRef> data(
CFDataCreateWithBytesNoCopy(kCFAllocatorDefault,
reinterpret_cast<const UInt8*>(pixel_data),
size->width()*size->height()*4,
kCFAllocatorNull));
- scoped_cftyperef<CGDataProviderRef> data_provider(
+ base::win::ScopedCFTypeRef<CGDataProviderRef> data_provider(
CGDataProviderCreateWithCFData(data));
- scoped_cftyperef<CGImageRef> cgimage(
+ base::win::ScopedCFTypeRef<CGImageRef> cgimage(
CGImageCreate(size->width(),
size->height(),
8,
« no previous file with comments | « no previous file | app/surface/accelerated_surface_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698