summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/cocoa/animatable_image.mm4
-rw-r--r--chrome/browser/cocoa/certificate_viewer.mm4
-rw-r--r--chrome/browser/cocoa/download_started_animation_mac.mm1
-rw-r--r--chrome/browser/cocoa/file_metadata.mm4
-rw-r--r--chrome/browser/cocoa/install_from_dmg.mm3
-rw-r--r--chrome/browser/cocoa/page_info_window_mac.mm1
-rw-r--r--chrome/browser/cocoa/shell_dialogs_mac.mm6
-rw-r--r--chrome/browser/cocoa/ssl_client_certificate_selector.mm1
-rw-r--r--chrome/browser/cocoa/tab_view.mm6
-rw-r--r--chrome/browser/cocoa/tabpose_window.h6
-rw-r--r--chrome/browser/cocoa/tabpose_window.mm14
-rw-r--r--chrome/browser/file_path_watcher_mac.cc8
-rw-r--r--chrome/browser/policy/configuration_policy_provider_mac.cc6
-rw-r--r--chrome/browser/policy/configuration_policy_provider_mac_unittest.cc18
-rw-r--r--chrome/browser/preferences_mock_mac.h6
-rw-r--r--chrome/browser/renderer_host/backing_store_mac.h6
-rw-r--r--chrome/browser/renderer_host/backing_store_mac.mm13
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_mac.mm3
-rw-r--r--chrome/browser/search_engines/template_url_prepopulate_data.cc4
19 files changed, 58 insertions, 56 deletions
diff --git a/chrome/browser/cocoa/animatable_image.mm b/chrome/browser/cocoa/animatable_image.mm
index 1c73f55..2169843 100644
--- a/chrome/browser/cocoa/animatable_image.mm
+++ b/chrome/browser/cocoa/animatable_image.mm
@@ -6,7 +6,7 @@
#include "base/logging.h"
#import "base/mac_util.h"
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
@interface AnimatableImage (Private)
@@ -130,7 +130,7 @@
// Sets the layer contents by converting the NSImage to a CGImageRef. This will
// rasterize PDF resources.
- (void)setLayerContents:(CALayer*)layer {
- scoped_cftyperef<CGImageRef> image(
+ base::mac::ScopedCFTypeRef<CGImageRef> image(
mac_util::CopyNSImageToCGImage(image_.get()));
// Create the layer that will be animated.
[layer setContents:(id)image.get()];
diff --git a/chrome/browser/cocoa/certificate_viewer.mm b/chrome/browser/cocoa/certificate_viewer.mm
index ed29ef4..8c5a954 100644
--- a/chrome/browser/cocoa/certificate_viewer.mm
+++ b/chrome/browser/cocoa/certificate_viewer.mm
@@ -10,7 +10,7 @@
#include <vector>
#include "base/logging.h"
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#include "net/base/x509_certificate.h"
void ShowCertificateViewer(gfx::NativeWindow parent,
@@ -19,7 +19,7 @@ void ShowCertificateViewer(gfx::NativeWindow parent,
if (!cert_mac)
return;
- scoped_cftyperef<CFMutableArrayRef> certificates(
+ base::mac::ScopedCFTypeRef<CFMutableArrayRef> certificates(
CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks));
if (!certificates.get()) {
NOTREACHED();
diff --git a/chrome/browser/cocoa/download_started_animation_mac.mm b/chrome/browser/cocoa/download_started_animation_mac.mm
index 0ff5ef9..0ed926b 100644
--- a/chrome/browser/cocoa/download_started_animation_mac.mm
+++ b/chrome/browser/cocoa/download_started_animation_mac.mm
@@ -12,7 +12,6 @@
#import <QuartzCore/QuartzCore.h>
#include "app/resource_bundle.h"
-#include "base/scoped_cftyperef.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/tab_contents_view_mac.h"
#import "chrome/browser/cocoa/animatable_image.h"
diff --git a/chrome/browser/cocoa/file_metadata.mm b/chrome/browser/cocoa/file_metadata.mm
index 63c4aeb..ad3a92f 100644
--- a/chrome/browser/cocoa/file_metadata.mm
+++ b/chrome/browser/cocoa/file_metadata.mm
@@ -8,9 +8,9 @@
#include <Foundation/Foundation.h>
#include "base/file_path.h"
-#include "base/scoped_cftyperef.h"
#include "base/logging.h"
#include "base/mac_util.h"
+#include "base/mac/scoped_cftyperef.h"
#include "googleurl/src/gurl.h"
namespace file_metadata {
@@ -69,7 +69,7 @@ void AddOriginMetadataToFile(const FilePath& file, const GURL& source,
if (!file_path)
return;
- scoped_cftyperef<MDItemRef> md_item(
+ base::mac::ScopedCFTypeRef<MDItemRef> md_item(
MDItemCreate(NULL, reinterpret_cast<CFStringRef>(file_path)));
if (!md_item)
return;
diff --git a/chrome/browser/cocoa/install_from_dmg.mm b/chrome/browser/cocoa/install_from_dmg.mm
index cffe3fc..be6ad3b 100644
--- a/chrome/browser/cocoa/install_from_dmg.mm
+++ b/chrome/browser/cocoa/install_from_dmg.mm
@@ -37,8 +37,7 @@
namespace {
-// Just like scoped_cftyperef from base/scoped_cftyperef.h, but for
-// io_object_t and subclasses.
+// Just like ScopedCFTypeRef but for io_object_t and subclasses.
template<typename IOT>
class scoped_ioobject {
public:
diff --git a/chrome/browser/cocoa/page_info_window_mac.mm b/chrome/browser/cocoa/page_info_window_mac.mm
index e246c0a..2774e1e 100644
--- a/chrome/browser/cocoa/page_info_window_mac.mm
+++ b/chrome/browser/cocoa/page_info_window_mac.mm
@@ -7,7 +7,6 @@
#include <algorithm>
#include "app/l10n_util.h"
-#include "base/scoped_cftyperef.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "base/sys_string_conversions.h"
diff --git a/chrome/browser/cocoa/shell_dialogs_mac.mm b/chrome/browser/cocoa/shell_dialogs_mac.mm
index 59fc881..bb1ad05 100644
--- a/chrome/browser/cocoa/shell_dialogs_mac.mm
+++ b/chrome/browser/cocoa/shell_dialogs_mac.mm
@@ -15,7 +15,7 @@
#import "base/cocoa_protocols_mac.h"
#include "base/logging.h"
#include "base/mac_util.h"
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#import "base/scoped_nsobject.h"
#include "base/sys_string_conversions.h"
#include "grit/generated_resources.h"
@@ -308,11 +308,11 @@ NSView* SelectFileDialogImpl::GetAccessoryView(const FileTypeInfo* file_types,
file_types->extensions[type];
DCHECK(!ext_list.empty());
NSString* type_extension = base::SysUTF8ToNSString(ext_list[0]);
- scoped_cftyperef<CFStringRef> uti(
+ base::mac::ScopedCFTypeRef<CFStringRef> uti(
UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension,
(CFStringRef)type_extension,
NULL));
- scoped_cftyperef<CFStringRef> description(
+ base::mac::ScopedCFTypeRef<CFStringRef> description(
UTTypeCopyDescription(uti.get()));
type_description =
diff --git a/chrome/browser/cocoa/ssl_client_certificate_selector.mm b/chrome/browser/cocoa/ssl_client_certificate_selector.mm
index 9db787c..c72e00f 100644
--- a/chrome/browser/cocoa/ssl_client_certificate_selector.mm
+++ b/chrome/browser/cocoa/ssl_client_certificate_selector.mm
@@ -11,7 +11,6 @@
#import "app/l10n_util_mac.h"
#include "base/logging.h"
#include "base/ref_counted.h"
-#include "base/scoped_cftyperef.h"
#import "base/scoped_nsobject.h"
#include "base/string_util.h"
#include "base/sys_string_conversions.h"
diff --git a/chrome/browser/cocoa/tab_view.mm b/chrome/browser/cocoa/tab_view.mm
index c9674e7..7b7ed59 100644
--- a/chrome/browser/cocoa/tab_view.mm
+++ b/chrome/browser/cocoa/tab_view.mm
@@ -6,8 +6,8 @@
#include "base/logging.h"
#import "base/mac_util.h"
+#include "base/mac/scoped_cftyperef.h"
#include "base/nsimage_cache_mac.h"
-#include "base/scoped_cftyperef.h"
#import "chrome/browser/cocoa/tab_controller.h"
#import "chrome/browser/cocoa/tab_window_controller.h"
#import "chrome/browser/cocoa/themed_window.h"
@@ -967,9 +967,9 @@ const CGFloat kRapidCloseDist = 2.5;
int workspace = -1;
// It's possible to query in bulk, but probably not necessary.
- scoped_cftyperef<CFArrayRef> windowIDs(CFArrayCreate(
+ base::mac::ScopedCFTypeRef<CFArrayRef> windowIDs(CFArrayCreate(
NULL, reinterpret_cast<const void **>(&windowID), 1, NULL));
- scoped_cftyperef<CFArrayRef> descriptions(
+ base::mac::ScopedCFTypeRef<CFArrayRef> descriptions(
CGWindowListCreateDescriptionFromArray(windowIDs));
DCHECK(CFArrayGetCount(descriptions.get()) <= 1);
if (CFArrayGetCount(descriptions.get()) > 0) {
diff --git a/chrome/browser/cocoa/tabpose_window.h b/chrome/browser/cocoa/tabpose_window.h
index fef3bbb..7728367 100644
--- a/chrome/browser/cocoa/tabpose_window.h
+++ b/chrome/browser/cocoa/tabpose_window.h
@@ -8,7 +8,7 @@
#import <Cocoa/Cocoa.h>
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#include "base/scoped_nsobject.h"
#include "base/scoped_ptr.h"
@@ -52,8 +52,8 @@ class TabStripModelObserverBridge;
CALayer* selectionHighlight_; // weak
// Colors used by the layers.
- scoped_cftyperef<CGColorRef> gray_;
- scoped_cftyperef<CGColorRef> darkBlue_;
+ base::mac::ScopedCFTypeRef<CGColorRef> gray_;
+ base::mac::ScopedCFTypeRef<CGColorRef> darkBlue_;
TabStripModel* tabStripModel_; // weak
diff --git a/chrome/browser/cocoa/tabpose_window.mm b/chrome/browser/cocoa/tabpose_window.mm
index ca80dc5..c67a5a1 100644
--- a/chrome/browser/cocoa/tabpose_window.mm
+++ b/chrome/browser/cocoa/tabpose_window.mm
@@ -8,6 +8,7 @@
#include "app/resource_bundle.h"
#include "base/mac_util.h"
+#include "base/mac/scoped_cftyperef.h"
#include "base/scoped_callback_factory.h"
#include "base/sys_string_conversions.h"
#include "chrome/app/chrome_dll_resource.h"
@@ -45,12 +46,13 @@ const CGFloat kObserverChangeAnimationDuration = 0.75; // In seconds.
@implementation DarkGradientLayer
- (void)drawInContext:(CGContextRef)context {
- scoped_cftyperef<CGColorSpaceRef> grayColorSpace(
+ base::mac::ScopedCFTypeRef<CGColorSpaceRef> grayColorSpace(
CGColorSpaceCreateWithName(kCGColorSpaceGenericGray));
CGFloat grays[] = { 0.277, 1.0, 0.39, 1.0 };
CGFloat locations[] = { 0, 1 };
- scoped_cftyperef<CGGradientRef> gradient(CGGradientCreateWithColorComponents(
- grayColorSpace.get(), grays, locations, arraysize(locations)));
+ base::mac::ScopedCFTypeRef<CGGradientRef> gradient(
+ CGGradientCreateWithColorComponents(
+ grayColorSpace.get(), grays, locations, arraysize(locations)));
CGPoint topLeft = CGPointMake(0.0, kTopGradientHeight);
CGContextDrawLinearGradient(context, gradient.get(), topLeft, CGPointZero, 0);
}
@@ -75,7 +77,7 @@ class ThumbnailLoader;
// If the backing store couldn't be used and a thumbnail was returned from a
// renderer process, it's stored in |thumbnail_|.
- scoped_cftyperef<CGImageRef> thumbnail_;
+ base::mac::ScopedCFTypeRef<CGImageRef> thumbnail_;
// True if the layer already sent a thumbnail request to a renderer.
BOOL didSendLoad_;
@@ -222,7 +224,7 @@ void ThumbnailLoader::LoadThumbnail() {
if (backing_store->cg_layer()) {
CGContextDrawLayerInRect(context, destRect, backing_store->cg_layer());
} else {
- scoped_cftyperef<CGImageRef> image(
+ base::mac::ScopedCFTypeRef<CGImageRef> image(
CGBitmapContextCreateImage(backing_store->cg_bitmap()));
CGContextDrawImage(context, destRect, image);
}
@@ -948,7 +950,7 @@ void AnimateCALayerFrameFromTo(
IDR_DEFAULT_FAVICON);
nsFavicon = defaultFavIcon;
}
- scoped_cftyperef<CGImageRef> favicon(
+ base::mac::ScopedCFTypeRef<CGImageRef> favicon(
mac_util::CopyNSImageToCGImage(nsFavicon));
CALayer* faviconLayer = [CALayer layer];
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<CFStringRef> cf_path(CFStringCreateWithCString(
+ base::mac::ScopedCFTypeRef<CFStringRef> cf_path(CFStringCreateWithCString(
NULL, target_.value().c_str(), kCFStringEncodingMacHFS));
- scoped_cftyperef<CFStringRef> cf_dir_path(CFStringCreateWithCString(
+ base::mac::ScopedCFTypeRef<CFStringRef> cf_dir_path(CFStringCreateWithCString(
NULL, target_.DirName().value().c_str(), kCFStringEncodingMacHFS));
CFStringRef paths_array[] = { cf_path.get(), cf_dir_path.get() };
- scoped_cftyperef<CFArrayRef> watched_paths(CFArrayCreate(
+ base::mac::ScopedCFTypeRef<CFArrayRef> watched_paths(CFArrayCreate(
NULL, reinterpret_cast<const void**>(paths_array), arraysize(paths_array),
&kCFTypeArrayCallBacks));
diff --git a/chrome/browser/policy/configuration_policy_provider_mac.cc b/chrome/browser/policy/configuration_policy_provider_mac.cc
index 185995a..552e33c 100644
--- a/chrome/browser/policy/configuration_policy_provider_mac.cc
+++ b/chrome/browser/policy/configuration_policy_provider_mac.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/policy/configuration_policy_provider_mac.h"
#include "base/logging.h"
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#include "base/sys_string_conversions.h"
namespace policy {
@@ -26,9 +26,9 @@ bool ConfigurationPolicyProviderMac::Provide(ConfigurationPolicyStore* store) {
for (PolicyValueMap::const_iterator current = mapping.begin();
current != mapping.end(); ++current) {
- scoped_cftyperef<CFStringRef> name(
+ base::mac::ScopedCFTypeRef<CFStringRef> name(
base::SysUTF8ToCFStringRef(current->name));
- scoped_cftyperef<CFPropertyListRef> value(
+ base::mac::ScopedCFTypeRef<CFPropertyListRef> value(
preferences_->CopyAppValue(name, kCFPreferencesCurrentApplication));
if (!value.get())
continue;
diff --git a/chrome/browser/policy/configuration_policy_provider_mac_unittest.cc b/chrome/browser/policy/configuration_policy_provider_mac_unittest.cc
index 6bf40bb..86794a0 100644
--- a/chrome/browser/policy/configuration_policy_provider_mac_unittest.cc
+++ b/chrome/browser/policy/configuration_policy_provider_mac_unittest.cc
@@ -4,6 +4,7 @@
#include <gtest/gtest.h>
+#include "base/mac/scoped_cftyperef.h"
#include "base/stl_util-inl.h"
#include "base/sys_string_conversions.h"
#include "chrome/browser/policy/configuration_policy_pref_store.h"
@@ -72,7 +73,7 @@ class PolicyTestParams {
case Value::TYPE_LIST: {
const ListValue* list =
static_cast<const ListValue*>(test_value_.get());
- scoped_cftyperef<CFMutableArrayRef> array(
+ base::mac::ScopedCFTypeRef<CFMutableArrayRef> array(
CFArrayCreateMutable(NULL, list->GetSize(),
&kCFTypeArrayCallBacks));
for (ListValue::const_iterator element(list->begin());
@@ -82,7 +83,7 @@ class PolicyTestParams {
std::string element_value;
if (!(*element)->GetAsString(&element_value))
return NULL;
- scoped_cftyperef<CFStringRef> cf_element_value(
+ base::mac::ScopedCFTypeRef<CFStringRef> cf_element_value(
base::SysUTF8ToCFStringRef(element_value));
CFArrayAppendValue(array, cf_element_value.get());
}
@@ -150,18 +151,19 @@ TEST_P(ConfigurationPolicyProviderMacTest, Default) {
}
TEST_P(ConfigurationPolicyProviderMacTest, Invalid) {
- scoped_cftyperef<CFStringRef> name(
+ base::mac::ScopedCFTypeRef<CFStringRef> name(
base::SysUTF8ToCFStringRef(GetParam().policy_name()));
- scoped_cftyperef<CFDataRef> invalid_data(CFDataCreate(NULL, NULL, 0));
+ base::mac::ScopedCFTypeRef<CFDataRef> invalid_data(
+ CFDataCreate(NULL, NULL, 0));
prefs_->AddTestItem(name, invalid_data.get(), true);
EXPECT_TRUE(provider_->Provide(store_.get()));
EXPECT_TRUE(store_->policy_map().empty());
}
TEST_P(ConfigurationPolicyProviderMacTest, TestNonForcedValue) {
- scoped_cftyperef<CFStringRef> name(
+ base::mac::ScopedCFTypeRef<CFStringRef> name(
base::SysUTF8ToCFStringRef(GetParam().policy_name()));
- scoped_cftyperef<CFPropertyListRef> test_value(
+ base::mac::ScopedCFTypeRef<CFPropertyListRef> test_value(
GetParam().GetPropertyListValue());
ASSERT_TRUE(test_value.get());
prefs_->AddTestItem(name, test_value.get(), false);
@@ -170,9 +172,9 @@ TEST_P(ConfigurationPolicyProviderMacTest, TestNonForcedValue) {
}
TEST_P(ConfigurationPolicyProviderMacTest, TestValue) {
- scoped_cftyperef<CFStringRef> name(
+ base::mac::ScopedCFTypeRef<CFStringRef> name(
base::SysUTF8ToCFStringRef(GetParam().policy_name()));
- scoped_cftyperef<CFPropertyListRef> test_value(
+ base::mac::ScopedCFTypeRef<CFPropertyListRef> test_value(
GetParam().GetPropertyListValue());
ASSERT_TRUE(test_value.get());
prefs_->AddTestItem(name, test_value, true);
diff --git a/chrome/browser/preferences_mock_mac.h b/chrome/browser/preferences_mock_mac.h
index c804776..6c1ea3d 100644
--- a/chrome/browser/preferences_mock_mac.h
+++ b/chrome/browser/preferences_mock_mac.h
@@ -6,7 +6,7 @@
#define CHROME_BROWSER_PREFERENCES_MOCK_MAC_H_
#pragma once
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#include "chrome/browser/preferences_mac.h"
// Mock preferences wrapper for testing code that interacts with CFPreferences.
@@ -24,8 +24,8 @@ class MockPreferences : public MacPreferences {
void AddTestItem(CFStringRef key, CFPropertyListRef value, bool is_forced);
private:
- scoped_cftyperef<CFMutableDictionaryRef> values_;
- scoped_cftyperef<CFMutableSetRef> forced_;
+ base::mac::ScopedCFTypeRef<CFMutableDictionaryRef> values_;
+ base::mac::ScopedCFTypeRef<CFMutableSetRef> forced_;
};
#endif // CHROME_BROWSER_PREFERENCES_MOCK_MAC_H_
diff --git a/chrome/browser/renderer_host/backing_store_mac.h b/chrome/browser/renderer_host/backing_store_mac.h
index 0c1e4a7..2c75400d 100644
--- a/chrome/browser/renderer_host/backing_store_mac.h
+++ b/chrome/browser/renderer_host/backing_store_mac.h
@@ -7,7 +7,7 @@
#pragma once
#include "base/basictypes.h"
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#include "chrome/browser/renderer_host/backing_store.h"
class BackingStoreMac : public BackingStore {
@@ -48,8 +48,8 @@ class BackingStoreMac : public BackingStore {
// result.
CGContextRef CreateCGBitmapContext();
- scoped_cftyperef<CGContextRef> cg_bitmap_;
- scoped_cftyperef<CGLayerRef> cg_layer_;
+ base::mac::ScopedCFTypeRef<CGContextRef> cg_bitmap_;
+ base::mac::ScopedCFTypeRef<CGLayerRef> cg_layer_;
DISALLOW_COPY_AND_ASSIGN(BackingStoreMac);
};
diff --git a/chrome/browser/renderer_host/backing_store_mac.mm b/chrome/browser/renderer_host/backing_store_mac.mm
index f793395..bea378f 100644
--- a/chrome/browser/renderer_host/backing_store_mac.mm
+++ b/chrome/browser/renderer_host/backing_store_mac.mm
@@ -9,6 +9,7 @@
#include "app/surface/transport_dib.h"
#include "base/logging.h"
#include "base/mac_util.h"
+#include "base/mac/scoped_cftyperef.h"
#include "base/sys_info.h"
#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/browser/renderer_host/render_widget_host.h"
@@ -67,11 +68,11 @@ void BackingStoreMac::PaintToBackingStore(
if (!dib)
return;
- scoped_cftyperef<CGDataProviderRef> data_provider(
+ base::mac::ScopedCFTypeRef<CGDataProviderRef> data_provider(
CGDataProviderCreateWithData(NULL, dib->memory(),
bitmap_rect.width() * bitmap_rect.height() * 4, NULL));
- scoped_cftyperef<CGImageRef> bitmap_image(
+ base::mac::ScopedCFTypeRef<CGImageRef> bitmap_image(
CGImageCreate(bitmap_rect.width(), bitmap_rect.height(), 8, 32,
4 * bitmap_rect.width(), mac_util::GetSystemColorSpace(),
kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host,
@@ -81,7 +82,7 @@ void BackingStoreMac::PaintToBackingStore(
const gfx::Rect& copy_rect = copy_rects[i];
// Only the subpixels given by copy_rect have pixels to copy.
- scoped_cftyperef<CGImageRef> image(
+ base::mac::ScopedCFTypeRef<CGImageRef> image(
CGImageCreateWithImageInRect(bitmap_image, CGRectMake(
copy_rect.x() - bitmap_rect.x(),
copy_rect.y() - bitmap_rect.y(),
@@ -93,7 +94,7 @@ void BackingStoreMac::PaintToBackingStore(
cg_layer_.reset(CreateCGLayer());
if (cg_layer()) {
// now that we have a layer, copy the cached image into it
- scoped_cftyperef<CGImageRef> bitmap_image(
+ base::mac::ScopedCFTypeRef<CGImageRef> bitmap_image(
CGBitmapContextCreateImage(cg_bitmap_));
CGContextDrawImage(CGLayerGetContext(cg_layer()),
CGRectMake(0, 0, size().width(), size().height()),
@@ -162,7 +163,7 @@ void BackingStoreMac::ScrollBackingStore(int dx, int dy,
// See http://crbug.com/45553 , comments 5 and 6.
static bool needs_layer_workaround = NeedsLayerWorkaround();
- scoped_cftyperef<CGLayerRef> new_layer;
+ base::mac::ScopedCFTypeRef<CGLayerRef> new_layer;
CGContextRef layer;
if (needs_layer_workaround) {
@@ -189,7 +190,7 @@ void BackingStoreMac::ScrollBackingStore(int dx, int dy,
cg_layer_.swap(new_layer);
} else {
// We don't have a layer, so scroll the contents of the CGBitmapContext.
- scoped_cftyperef<CGImageRef> bitmap_image(
+ base::mac::ScopedCFTypeRef<CGImageRef> bitmap_image(
CGBitmapContextCreateImage(cg_bitmap_));
CGContextSaveGState(cg_bitmap_);
CGContextClipToRect(cg_bitmap_,
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
index a27fbcd..acf62a0 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
@@ -11,6 +11,7 @@
#import "base/chrome_application_mac.h"
#include "base/command_line.h"
#include "base/logging.h"
+#include "base/mac/scoped_cftyperef.h"
#include "base/metrics/histogram.h"
#import "base/scoped_nsautorelease_pool.h"
#import "base/scoped_nsobject.h"
@@ -1684,7 +1685,7 @@ void RenderWidgetHostViewMac::SetTextInputActive(bool active) {
// paints.
CGContextRef context = static_cast<CGContextRef>(
[[NSGraphicsContext currentContext] graphicsPort]);
- scoped_cftyperef<CGImageRef> image(
+ base::mac::ScopedCFTypeRef<CGImageRef> image(
CGBitmapContextCreateImage(backingStore->cg_bitmap()));
CGRect imageRect = bitmapRect.ToCGRect();
imageRect.origin.y = yOffset;
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.cc b/chrome/browser/search_engines/template_url_prepopulate_data.cc
index b8b7361..362f95b 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.cc
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc
@@ -23,7 +23,7 @@
#if defined(OS_WIN)
#undef IN // On Windows, windef.h defines this, which screws up "India" cases.
#elif defined(OS_MACOSX)
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#endif
using base::Time;
@@ -2863,7 +2863,7 @@ int GetCurrentCountryID() {
#elif defined(OS_MACOSX)
int GetCurrentCountryID() {
- scoped_cftyperef<CFLocaleRef> locale(CFLocaleCopyCurrent());
+ base::mac::ScopedCFTypeRef<CFLocaleRef> locale(CFLocaleCopyCurrent());
CFStringRef country = (CFStringRef)CFLocaleGetValue(locale.get(),
kCFLocaleCountryCode);
if (!country)