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

Unified Diff: ui/base/clipboard/clipboard_mac.mm

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 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: ui/base/clipboard/clipboard_mac.mm
diff --git a/ui/base/clipboard/clipboard_mac.mm b/ui/base/clipboard/clipboard_mac.mm
index 759e5a08e4aa9bd885f31a54e70dff265f1fea55..bb5bfae56edc3294619bca65a7e26e2273a832c9 100644
--- a/ui/base/clipboard/clipboard_mac.mm
+++ b/ui/base/clipboard/clipboard_mac.mm
@@ -159,21 +159,21 @@ void Clipboard::WriteBitmap(const char* pixel_data, const char* size_data) {
const gfx::Size* size = reinterpret_cast<const gfx::Size*>(size_data);
// Safe because the image goes away before the call returns.
- base::mac::ScopedCFTypeRef<CFDataRef> data(
+ base::ScopedCFTypeRef<CFDataRef> data(
CFDataCreateWithBytesNoCopy(kCFAllocatorDefault,
reinterpret_cast<const UInt8*>(pixel_data),
- size->width()*size->height()*4,
+ size->width() * size->height() * 4,
kCFAllocatorNull));
- base::mac::ScopedCFTypeRef<CGDataProviderRef> data_provider(
+ base::ScopedCFTypeRef<CGDataProviderRef> data_provider(
CGDataProviderCreateWithCFData(data));
- base::mac::ScopedCFTypeRef<CGImageRef> cgimage(
+ base::ScopedCFTypeRef<CGImageRef> cgimage(
CGImageCreate(size->width(),
size->height(),
8,
32,
- size->width()*4,
+ size->width() * 4,
base::mac::GetSRGBColorSpace(), // TODO(avi): do better
kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host,
data_provider,
« no previous file with comments | « third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc ('k') | ui/base/resource/resource_bundle_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698